Add runcontestant script
This commit is contained in:
parent
9204d11a7f
commit
6c8705b8cd
3 changed files with 9 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ set -eu
|
|||
|
||||
kexec --kexec-file-syscall --load /vmlinuz --initrd=/initrd.img --append="$(cat /proc/cmdline)"
|
||||
|
||||
if XDG_RUNTIME_DIR="/run/user/$(id -u contestant)" runuser -u contestant -- zenity --question --title="Reboot?" --text="Press Enter after inserting the boot USB stick."
|
||||
if runcontestant zenity --question --title="Reboot?" --text="Press Enter after inserting the boot USB stick."
|
||||
then
|
||||
reboot
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue