diff options
Diffstat (limited to 'openembedded/packages/xserver-kdrive-common')
4 files changed, 59 insertions, 2 deletions
diff --git a/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager b/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager index baf50d1ab..b2b65a099 100644 --- a/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager +++ b/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager @@ -2,7 +2,7 @@ if [ -x $HOME/.Xsession ]; then exec $HOME/.Xsession else - exec /usr/win/x-window-manager + exec /usr/bin/x-window-manager fi diff --git a/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb b/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb index c364e7fc5..f56497ceb 100644 --- a/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb +++ b/openembedded/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb @@ -3,7 +3,7 @@ LICENSE = "GPL" SECTION = "x11" DEPENDS = "xmodmap xrandr xdpyinfo xtscal" RDEPENDS_${PN} = "xmodmap xrandr xdpyinfo xtscal" -PR = "r1" +PR = "r2" SRC_URI = "file://etc" S = ${WORKDIR} diff --git a/openembedded/packages/xserver-kdrive-common/xserver-nodm-init.bb b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init.bb new file mode 100644 index 000000000..d7aad8b4d --- /dev/null +++ b/openembedded/packages/xserver-kdrive-common/xserver-nodm-init.bb @@ -0,0 +1,19 @@ +DESCRIPTION = "Simple Xserver Init Script (no dm)" +LICENSE = "GPL" +SECTION = "x11" +PRIORITY = "optional" +PR = "r0" + +SRC_URI = "file://xserver-nodm" +S = ${WORKDIR} + +do_install() { + install -d ${D}/etc + install -d ${D}/etc/init.d + install xserver-nodm ${D}/etc/init.d +} + +inherit update-rc.d + +INITSCRIPT_NAME = "xserver-nodm" +INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ." 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 000000000..dcafb9e98 --- /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 |