diff options
Diffstat (limited to 'openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm')
-rwxr-xr-x | openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm new file mode 100755 index 0000000000..dcafb9e98f --- /dev/null +++ b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm @@ -0,0 +1,38 @@ +#!/bin/sh + +killproc() { # kill the named process(es) + pid=`/bin/ps -e x | + /bin/grep $1 | + /bin/grep -v grep | + /bin/sed -e 's/^ *//' -e 's/ .*//'` + [ "$pid" != "" ] && kill $pid +} + +case "$1" in + start) + echo "Starting Xserver" + /etc/X11/Xserver & + export DISPLAY=:0 + + while [ ! -f /etc/pointercal ] + do + /usr/bin/xtscal + done + + /etc/X11/Xsession & + ;; + + stop) + echo "Stopping XServer" + killproc /usr/bin/Xfbdev + killproc /usr/bin/Xomap + killproc /usr/bin/Xorg + killproc /usr/bin/Xepson + ;; + + *) + echo "usage: $0 { start | stop }" + ;; +esac + +exit 0 |