#!/bin/sh # Custom LTSP boot script: this goes in # /opt/ltsp-4.2/i386/etc/screen.d/dnakiosk # and is run on the thin client. # # This launches a few other things we need, and then runs # /opt/ltsp-4.2/i386/etc/screen.d/startx PATH="/nfsroot/sbin:$PATH" echo ''; echo ''; echo ''; echo ''; ifconfig eth0 | head -2 echo ''; echo ''; echo ''; echo ''; # launch sshd if it's not already running (it daemonizes) sshd killall gpm >/dev/null 2>&1 sleep 2 killall -9 gpm >/dev/null 2>&1 rm -f /var/run/gpm.pid >/dev/null 2>&1 gpm -m /dev/psaux -t imps2 -R msc -B 111 & dir=`echo $0 | sed 's@/[^/]*$@@'` exec $dir/startx