summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs')
-rwxr-xr-xinitramfs/initrd-stuff/bin/servconfig2
1 files changed, 2 insertions, 0 deletions
diff --git a/initramfs/initrd-stuff/bin/servconfig b/initramfs/initrd-stuff/bin/servconfig
index 9ec03bea..84acf102 100755
--- a/initramfs/initrd-stuff/bin/servconfig
+++ b/initramfs/initrd-stuff/bin/servconfig
@@ -537,6 +537,8 @@ $0: $date\n:0 local X :0 vt07\n" >/mnt/etc/X11/xdm/Xservers
# in this mode you have to provide the type of X session to start
[ x$start_xdmcp != "x" ] || start_xdmcp="no";
init="7:5:respawn:/var/X11R6/bin/kiosk /dev/tty7"
+ # nobody can halt pc
+ echo 'nobody ALL=NOPASSWD:/sbin/halt, /sbin/shutdown' >>/mnt/etc/sudoers
echo -e "#!/bin/sh\n# /var/X11R6/bin/kiosk - file generated by $0: $date
while ps aux|grep -i kiosk|grep -v \"grep\" &>/dev/null; do
test -f /var/run/kiosk || break; sleep 3;