diff options
author | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2006-07-21 10:10:31 +0000 |
commit | b2f192faabe412adce79534e22efe9fb69ee40e2 (patch) | |
tree | 7076c49d4286f8a1733650bd8fbc7161af200d57 /meta/packages/xserver-kdrive-common | |
parent | 2cf0eadf9f730027833af802d7e6c90b44248f80 (diff) | |
download | poky-b2f192faabe412adce79534e22efe9fb69ee40e2.tar.gz |
Rename /openembedded/ -> /meta/
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@530 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/xserver-kdrive-common')
20 files changed, 358 insertions, 0 deletions
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xdefaults b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xdefaults new file mode 100644 index 0000000000..f5b69dd516 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xdefaults | |||
@@ -0,0 +1,3 @@ | |||
1 | Rxvt*scrollBar_right: true | ||
2 | Rxvt*font: xft:Mono:pixelsize=9 | ||
3 | |||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit new file mode 100644 index 0000000000..f566ffe5be --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit | |||
@@ -0,0 +1,16 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | |||
4 | export USER=root | ||
5 | export HOME=/home/root | ||
6 | if [ ! -d $HOME ] && [ -d /root ]; then | ||
7 | HOME=/root | ||
8 | fi | ||
9 | export XAPPLRESDIR=/usr/X11R6/lib/app-defaults | ||
10 | export XFILESEARCHPATH=./%N%S%C.ad:/usr/X11R6/lib/X11/%L/%T/%N%S%C:/usr/X11R6/lib/X11/%l/%T/%N%S%C:/usr/X11R6/lib/X11/%T/%N%S%C:./%N%S.ad:/usr/X11R6/lib/X11/%L/%T/%N%S:/usr/X11R6/lib/X11/%l/%T/%N%S:/usr/X11R6/lib/X11/%T/%N%S:/usr/local/lib/X11/app-defaults/%N%S%C.ad | ||
11 | |||
12 | export PATH=$PATH:/usr/X11R6/bin | ||
13 | |||
14 | SYSSESSIONDIR=/etc/X11/Xinit.d | ||
15 | |||
16 | exec run-parts $SYSSESSIONDIR | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/01xrandr b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/01xrandr new file mode 100644 index 0000000000..abde87d53c --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/01xrandr | |||
@@ -0,0 +1,4 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | xrandr -o normal | ||
4 | |||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/11zaurus b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/11zaurus new file mode 100644 index 0000000000..61ca84b595 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/11zaurus | |||
@@ -0,0 +1,12 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -z "`which chkhinge`" ]; then | ||
4 | # probably not a clamshell zaurus | ||
5 | exit 0 | ||
6 | fi | ||
7 | |||
8 | chkhinge -e | ||
9 | if [ $? = 12 ]; then | ||
10 | xrandr -o right | ||
11 | fi | ||
12 | |||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/12keymap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/12keymap new file mode 100644 index 0000000000..abc14f8661 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/12keymap | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | MACHINE=`awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo` | ||
4 | |||
5 | case $MACHINE in | ||
6 | "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi") | ||
7 | case `uname -r` in | ||
8 | 2.4*) | ||
9 | xmodmap - < /etc/X11/shepherd.xmodmap | ||
10 | ;; | ||
11 | esac | ||
12 | ;; | ||
13 | "Sharp-Collie") | ||
14 | xmodmap - < /etc/X11/collie.xmodmap | ||
15 | ;; | ||
16 | "Simpad") | ||
17 | xmodmap - < /etc/X11/simpad.xmodmap | ||
18 | ;; | ||
19 | "HP iPAQ H2200") | ||
20 | xmodmap - < /etc/X11/h2200.xmodmap | ||
21 | ;; | ||
22 | esac | ||
23 | |||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/30xTs_Calibrate b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/30xTs_Calibrate new file mode 100644 index 0000000000..26d8551b18 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/30xTs_Calibrate | |||
@@ -0,0 +1,6 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ ! -f /etc/pointercal ] && [ ! -z "$TSLIB_TSDEVICE" ]; then | ||
4 | /usr/bin/xtscal | ||
5 | fi | ||
6 | |||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/40xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/40xmodmap new file mode 100644 index 0000000000..7ae3b58860 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/40xmodmap | |||
@@ -0,0 +1,5 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | if [ -f /proc/hal/model ]; then | ||
4 | xmodmap -e 'keycode 104 = Return' | ||
5 | fi | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/55xScreenSaver b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/55xScreenSaver new file mode 100644 index 0000000000..5f6d0dae5d --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/55xScreenSaver | |||
@@ -0,0 +1,4 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | xset s 30 180 | ||
4 | xset s off | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/60xXDefaults b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/60xXDefaults new file mode 100644 index 0000000000..6b35e0357c --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xinit.d/60xXDefaults | |||
@@ -0,0 +1,3 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | xrdb -load -nocpp < /etc/X11/Xdefaults | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver new file mode 100644 index 0000000000..88b8abbb23 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xserver | |||
@@ -0,0 +1,75 @@ | |||
1 | #!/bin/sh | ||
2 | # | ||
3 | |||
4 | XSERVER=Xipaq | ||
5 | if [ -f /usr/bin/Xfbdev ]; then | ||
6 | XSERVER=Xfbdev | ||
7 | fi | ||
8 | if [ -f /usr/bin/Xepson ]; then | ||
9 | XSERVER=Xepson | ||
10 | fi | ||
11 | if [ -f /usr/bin/Xorg ]; then | ||
12 | XSERVER=Xorg | ||
13 | fi | ||
14 | if [ -f /usr/bin/Xomap ]; then | ||
15 | XSERVER=Xomap | ||
16 | fi | ||
17 | |||
18 | . /etc/profile | ||
19 | |||
20 | module_id() { | ||
21 | ## used to read from assets, but sometimes assets is corrupted | ||
22 | # grep "Module ID" /proc/hal/assets | sed "s/.*://" | ||
23 | ## used to read from /proc/hal/model, but that is removed in 2.6 | ||
24 | # echo ' iPAQ' `cat /proc/hal/model` | ||
25 | awk 'BEGIN { FS=": " } /Hardware/ { print $2 } ' </proc/cpuinfo | ||
26 | } | ||
27 | |||
28 | export USER=root | ||
29 | |||
30 | ARGS=" -br -pn" | ||
31 | |||
32 | # use ucb 1x00 touchscreen if present | ||
33 | if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/touchscreen/ucb1x00 ]; then | ||
34 | ARGS="$ARGS -mouse /dev/touchscreen/ucb1x00" | ||
35 | fi | ||
36 | |||
37 | # use usb mouse if present | ||
38 | # Xorg doesn't support "-mouse" option, and uses /dev/input/mice automatically | ||
39 | if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ] && [ "$XSERVER" != "Xorg" ]; then | ||
40 | ARGS="$ARGS -mouse /dev/input/mice" | ||
41 | fi | ||
42 | |||
43 | # start off server in conventional location. | ||
44 | case `module_id` in | ||
45 | "HP iPAQ H3100" | "HP iPAQ H3800") | ||
46 | ARGS="$ARGS -dpi 100 -screen 320x240@90 -rgba vrgb" ;; | ||
47 | "HP iPAQ H3600" | "HP iPAQ H3700" | "HP iPAQ H3900") | ||
48 | ARGS="$ARGS -dpi 100 -screen 320x240@270 -rgba vbgr" ;; | ||
49 | "HP iPAQ H5400" | "HP iPAQ H2200") | ||
50 | ARGS="$ARGS -dpi 100 -rgba rgb" ;; | ||
51 | "Ramses") | ||
52 | # What is this "vt2" in aid of? | ||
53 | ARGS="$ARGS -dpi 100 -screen 320x240@90 -rgba vrgb vt2" ;; | ||
54 | # both 'Sharp-Collie' and just 'Collie' have been reported | ||
55 | *Poodle) | ||
56 | ARGS="$ARGS -screen 320x240@270 -rgba vrgb" ;; | ||
57 | *Collie) | ||
58 | ARGS="$ARGS -dpi 100 -screen 320x240@270 -rgba vrgb" | ||
59 | # Horrible hack required to enable resuming after suspend | ||
60 | rm -f /dev/apm_bios | ||
61 | killall -9 apmd | ||
62 | ;; | ||
63 | "SHARP Shepherd" | "SHARP Husky" | "SHARP Corgi") | ||
64 | ARGS="$ARGS -dpi 150 -rgba rgb" ;; | ||
65 | "SHARP Spitz" | "SHARP Akita" | "SHARP Borzoi") | ||
66 | ARGS="$ARGS -dpi 150 -rgba rgb -screen 480x640@270" ;; | ||
67 | "Simpad") | ||
68 | ARGS="$ARGS -rgba rgb" ;; | ||
69 | "Generic OMAP1510/1610/1710") | ||
70 | ARGS="$ARGS -mouse /dev/input/event0" ;; | ||
71 | "ARM-IntegratorCP") | ||
72 | ARGS="$ARGS -rgba vrgb" | ||
73 | esac | ||
74 | |||
75 | exec $XSERVER $ARGS $* | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession new file mode 100644 index 0000000000..cfa3a9a6e3 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession | |||
@@ -0,0 +1,47 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | # this location MUST be consistent with /etc/X11/gpe-login.pre-session | ||
4 | HOME_VOLATILE=/home/$USER/ramdisk | ||
5 | export HOME_VOLATILE | ||
6 | |||
7 | if [ -f /usr/bin/dbus-launch ]; then | ||
8 | ## test for an existing bus daemon, just to be safe | ||
9 | if test -z "$DBUS_SESSION_BUS_ADDRESS" ; then | ||
10 | ## if not found, launch a new one | ||
11 | eval `dbus-launch --auto-syntax --exit-with-session` | ||
12 | echo "D-BUS per-session daemon address is: $DBUS_SESSION_BUS_ADDRESS" | ||
13 | fi | ||
14 | fi | ||
15 | |||
16 | . /etc/profile | ||
17 | |||
18 | if [ -f $HOME/.profile ]; then | ||
19 | . $HOME/.profile | ||
20 | fi | ||
21 | |||
22 | SYSSESSIONDIR=/etc/X11/Xsession-gpe.d | ||
23 | |||
24 | if [ ! -d $SYSSESSIONDIR ]; then | ||
25 | SYSSESSIONDIR=/etc/X11/Xsession.d | ||
26 | fi | ||
27 | |||
28 | # Use run-parts to source every file in the session directory; we source | ||
29 | # instead of executing so that the variables and functions defined above | ||
30 | # are available to the scripts, and so that they can pass variables to each | ||
31 | # other. | ||
32 | |||
33 | # Can't use run-parts like this, busybox doesn't support it. Use ls instead | ||
34 | #SESSIONFILES=$(run-parts --list $SYSSESSIONDIR) | ||
35 | |||
36 | SESSIONFILES=`ls -X $SYSSESSIONDIR` | ||
37 | if [ -n "$SESSIONFILES" ]; then | ||
38 | for SESSIONFILE in $SESSIONFILES; do | ||
39 | # Test if script is executable first before sourcing it | ||
40 | if [ -x "$SYSSESSIONDIR/$SESSIONFILE" ]; then | ||
41 | . $SYSSESSIONDIR/$SESSIONFILE | ||
42 | fi | ||
43 | done | ||
44 | fi | ||
45 | |||
46 | exit 0 | ||
47 | |||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/60xXDefaults b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/60xXDefaults new file mode 100644 index 0000000000..d3a284d8da --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/60xXDefaults | |||
@@ -0,0 +1,4 @@ | |||
1 | #!/bin/sh | ||
2 | if [ -e $HOME/.Xdefaults ]; then | ||
3 | xrdb -merge -nocpp < $HOME/.Xdefaults | ||
4 | fi | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager new file mode 100644 index 0000000000..b2b65a0993 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/Xsession.d/90xXWindowManager | |||
@@ -0,0 +1,8 @@ | |||
1 | #!/bin/sh | ||
2 | if [ -x $HOME/.Xsession ]; then | ||
3 | exec $HOME/.Xsession | ||
4 | else | ||
5 | exec /usr/bin/x-window-manager | ||
6 | fi | ||
7 | |||
8 | |||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/collie.xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/collie.xmodmap new file mode 100644 index 0000000000..5c0b39dc88 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/collie.xmodmap | |||
@@ -0,0 +1,5 @@ | |||
1 | keycode 96 = XF86Calendar | ||
2 | keycode 97 = telephone | ||
3 | keycode 48 = XF86Start | ||
4 | keycode 98 = XF86Mail | ||
5 | keycode 117 = XF86PowerDown | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/h2200.xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/h2200.xmodmap new file mode 100644 index 0000000000..736766efd7 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/h2200.xmodmap | |||
@@ -0,0 +1,5 @@ | |||
1 | keycode 75 = XF86Calendar | ||
2 | keycode 76 = telephone | ||
3 | keycode 77 = XF86Mail | ||
4 | keycode 78 = XF86Start | ||
5 | keycode 124 = XF86PowerDown | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/shepherd.xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/shepherd.xmodmap new file mode 100644 index 0000000000..0a03b4f426 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/shepherd.xmodmap | |||
@@ -0,0 +1,49 @@ | |||
1 | keycode 38 = Mode_switch | ||
2 | keycode 31 = w W caret | ||
3 | keycode 13 = e E equal | ||
4 | keycode 26 = r R plus | ||
5 | keycode 28 = t T bracketleft | ||
6 | keycode 33 = y y bracketright | ||
7 | keycode 29 = u U braceleft | ||
8 | keycode 17 = i I braceright | ||
9 | !keycode 73 = Tab Tab Caps_Lock | ||
10 | keycode 12 = d D periodcentered | ||
11 | keycode 14 = f F backslash | ||
12 | keycode 15 = g G semicolon | ||
13 | keycode 16 = h H colon | ||
14 | keycode 18 = j J asterisk | ||
15 | keycode 19 = k K currency | ||
16 | keycode 20 = l L bar | ||
17 | keycode 10 = b B underscore | ||
18 | keycode 66 = minus minus at | ||
19 | keycode 71 = comma slash less | ||
20 | keycode 72 = period question greater | ||
21 | |||
22 | ! Side keys | ||
23 | keycode 134 = Down | ||
24 | keycode 133 = Up | ||
25 | keycode 131 = Return | ||
26 | keycode 132 = Escape | ||
27 | |||
28 | !Special keys | ||
29 | !keycode 96 = XF86Calendar | ||
30 | !keycode 97 = telephone | ||
31 | !keycode 98 = XF86Mail | ||
32 | !keycode 48 = XF86HomePage | ||
33 | !keycode 37 = XF86Start | ||
34 | |||
35 | clear Shift | ||
36 | clear Lock | ||
37 | clear Control | ||
38 | clear Mod1 | ||
39 | clear Mod2 | ||
40 | clear Mod3 | ||
41 | clear Mod4 | ||
42 | clear Mod5 | ||
43 | |||
44 | add Shift = Shift_L Shift_R | ||
45 | !add Lock = Caps_Lock | ||
46 | add Control = Control_L Control_R | ||
47 | add Mod1 = Alt_L Alt_R | ||
48 | add Mod2 = Mode_switch | ||
49 | |||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/simpad.xmodmap b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/simpad.xmodmap new file mode 100644 index 0000000000..d8b73b207f --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common/etc/X11/simpad.xmodmap | |||
@@ -0,0 +1,2 @@ | |||
1 | keycode 102 = XF86PowerDown | ||
2 | |||
diff --git a/meta/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb b/meta/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb new file mode 100644 index 0000000000..b1f06fe3b6 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-kdrive-common_0.1.bb | |||
@@ -0,0 +1,18 @@ | |||
1 | DESCRIPTION = "Common X11 scripts" | ||
2 | LICENSE = "GPL" | ||
3 | SECTION = "x11" | ||
4 | RDEPENDS_${PN} = "xmodmap libxrandr xdpyinfo xtscal" | ||
5 | PR = "r6" | ||
6 | |||
7 | SRC_URI = "file://etc" | ||
8 | S = ${WORKDIR} | ||
9 | |||
10 | PACKAGE_ARCH = "all" | ||
11 | |||
12 | do_install() { | ||
13 | cp -R ${S}/etc ${D}/etc | ||
14 | rm -fR ${D}/etc/.svn | ||
15 | rm -fR ${D}/etc/*/.svn | ||
16 | rm -fR ${D}/etc/*/*/.svn | ||
17 | chmod -R 755 ${D}/etc | ||
18 | } \ No newline at end of file | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb b/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb new file mode 100644 index 0000000000..5dff889184 --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | DESCRIPTION = "Simple Xserver Init Script (no dm)" | ||
2 | LICENSE = "GPL" | ||
3 | SECTION = "x11" | ||
4 | PRIORITY = "optional" | ||
5 | PR = "r6" | ||
6 | |||
7 | SRC_URI = "file://xserver-nodm" | ||
8 | S = ${WORKDIR} | ||
9 | |||
10 | PACKAGE_ARCH = "all" | ||
11 | |||
12 | do_install() { | ||
13 | install -d ${D}/etc | ||
14 | install -d ${D}/etc/init.d | ||
15 | install xserver-nodm ${D}/etc/init.d | ||
16 | } | ||
17 | |||
18 | inherit update-rc.d | ||
19 | |||
20 | INITSCRIPT_NAME = "xserver-nodm" | ||
21 | INITSCRIPT_PARAMS = "start 99 5 2 . stop 20 0 1 6 ." | ||
diff --git a/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm new file mode 100755 index 0000000000..eeab55a71a --- /dev/null +++ b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | |||
@@ -0,0 +1,48 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | killproc() { # kill the named process(es) | ||
4 | pid=`/bin/ps -e x | | ||
5 | /bin/grep $1 | | ||
6 | /bin/grep -v grep | | ||
7 | /bin/sed -e 's/^ *//' -e 's/ .*//'` | ||
8 | [ "$pid" != "" ] && kill $pid | ||
9 | } | ||
10 | |||
11 | |||
12 | |||
13 | case "$1" in | ||
14 | start) | ||
15 | # We don't want this script to block the rest of the boot process | ||
16 | if [ "$2" != "background" ]; then | ||
17 | $0 $1 background & | ||
18 | else | ||
19 | . /etc/profile | ||
20 | |||
21 | echo "Starting Xserver" | ||
22 | /etc/X11/Xserver & | ||
23 | |||
24 | export DISPLAY=:0 | ||
25 | |||
26 | while [ ! -z $TSLIB_TSDEVICE ] && [ ! -f /etc/pointercal ] | ||
27 | do | ||
28 | /usr/bin/xtscal | ||
29 | done | ||
30 | |||
31 | /etc/X11/Xsession & | ||
32 | fi | ||
33 | ;; | ||
34 | |||
35 | stop) | ||
36 | echo "Stopping XServer" | ||
37 | killproc Xfbdev | ||
38 | killproc Xomap | ||
39 | killproc Xorg | ||
40 | killproc Xepson | ||
41 | ;; | ||
42 | |||
43 | *) | ||
44 | echo "usage: $0 { start | stop }" | ||
45 | ;; | ||
46 | esac | ||
47 | |||
48 | exit 0 | ||