diff options
author | Michael Janczyk | 2007-09-28 19:01:08 +0200 |
---|---|---|
committer | Michael Janczyk | 2007-09-28 19:01:08 +0200 |
commit | ff92829f5a13025a398fcca15bef28f7d082165a (patch) | |
tree | 3f4a1ef9c1efe713b777d5a0f988c2f6a43186a1 /initramfs/initrd-stuff/bin/servconfig | |
parent | Splashy optimization + splashy exit through boot initial script splashy.stop.... (diff) | |
download | core-ff92829f5a13025a398fcca15bef28f7d082165a.tar.gz core-ff92829f5a13025a398fcca15bef28f7d082165a.tar.xz core-ff92829f5a13025a398fcca15bef28f7d082165a.zip |
New kiosk mode. Now Sound seems to work, trick: cascade cammands with "&&". Sound is unmuted. stattgui removed all obsolete stuff.
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1355 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'initramfs/initrd-stuff/bin/servconfig')
-rwxr-xr-x | initramfs/initrd-stuff/bin/servconfig | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/initramfs/initrd-stuff/bin/servconfig b/initramfs/initrd-stuff/bin/servconfig index c8f191ff..9ec03bea 100755 --- a/initramfs/initrd-stuff/bin/servconfig +++ b/initramfs/initrd-stuff/bin/servconfig @@ -537,15 +537,22 @@ $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" - echo -e "#!/bin/sh\n# /var/X11R6/bin/kiosk - file generated by $0: \ -$date\nwhile ps aux|grep -i kiosk|grep -v \"grep\" &>/dev/null;\ -do\n test -f /var/run/kiosk || break; sleep 3;\ndone\ntouch \ - /var/run/kiosk\nresmgr login nobody tty7\nresmgr grant nobody desktop\n\ -chown nobody /dev/dsp* /dev/audio* /dev/mixer* /dev/snd/control*\n\ -chown -R nobody:nobody /var/lib/nobody\nsu -c 'xinit /var/X11R6/bin/startgui \ -$start_x -- vt7 -quiet' -l nobody &>/dev/null\nrm /var/run/kiosk\n\ -resmgr revoke nobody\nresmgr logout tty7\nkillall X" \ - >/mnt/var/X11R6/bin/kiosk + 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; + done + touch /var/run/kiosk + resmgr login nobody tty7 \\ + && resmgr grant nobody desktop \\ + && chown -R nobody:nogroup /var/lib/nobody \\ + && (su -c 'amixer -q sset Master 28 unmute + amixer -q sset PCM 28 unmute + xinit /var/X11R6/bin/startgui $start_x \\ + -- vt7 -quiet' -l nobody &>/dev/null) + rm /var/run/kiosk + resmgr revoke nobody + resmgr logout tty7 + killall X" >/mnt/var/X11R6/bin/kiosk # early start of kiosk session if not late_dm is set if [ "x$late_dm" != "xyes" ] ; then echo -e "\t# kiosk start added by $0\n\t\ |