summaryrefslogtreecommitdiffstats
path: root/initramfs
diff options
context:
space:
mode:
authorMichael Janczyk2007-09-28 20:43:05 +0200
committerMichael Janczyk2007-09-28 20:43:05 +0200
commiteb1858ce2d80afb427e85b48b901e7e0b920e02f (patch)
treec254f2a9c9695a9991208e40dc65fd61757a41ee /initramfs
parentNew kiosk mode. Now Sound seems to work, trick: cascade cammands with "&&". S... (diff)
downloadcore-eb1858ce2d80afb427e85b48b901e7e0b920e02f.tar.gz
core-eb1858ce2d80afb427e85b48b901e7e0b920e02f.tar.xz
core-eb1858ce2d80afb427e85b48b901e7e0b920e02f.zip
added sudo halt for kiosk, user: nobody
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1356 95ad53e4-c205-0410-b2fa-d234c58c8868
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;