summaryrefslogtreecommitdiffstats
path: root/meta/packages/x11-common/xserver-nodm-init
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:14:24 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 15:29:45 +0100
commit29d6678fd546377459ef75cf54abeef5b969b5cf (patch)
tree8edd65790e37a00d01c3f203f773fe4b5012db18 /meta/packages/x11-common/xserver-nodm-init
parentda49de6885ee1bc424e70bc02f21f6ab920efb55 (diff)
downloadpoky-29d6678fd546377459ef75cf54abeef5b969b5cf.tar.gz
Major layout change to the packages directory
Having one monolithic packages directory makes it hard to find things and is generally overwhelming. This commit splits it into several logical sections roughly based on function, recipes.txt gives more information about the classifications used. The opportunity is also used to switch from "packages" to "recipes" as used in OpenEmbedded as the term "packages" can be confusing to people and has many different meanings. Not all recipes have been classified yet, this is just a first pass at separating things out. Some packages are moved to meta-extras as they're no longer actively used or maintained. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/packages/x11-common/xserver-nodm-init')
-rwxr-xr-xmeta/packages/x11-common/xserver-nodm-init/xserver-nodm58
1 files changed, 0 insertions, 58 deletions
diff --git a/meta/packages/x11-common/xserver-nodm-init/xserver-nodm b/meta/packages/x11-common/xserver-nodm-init/xserver-nodm
deleted file mode 100755
index 69ea949724..0000000000
--- a/meta/packages/x11-common/xserver-nodm-init/xserver-nodm
+++ /dev/null
@@ -1,58 +0,0 @@
1#!/bin/sh
2#
3### BEGIN INIT INFO
4# Provides: xserver
5# Required-Start: $local_fs $remote_fs dbus
6# Required-Stop: $local_fs $remote_fs
7# Default-Start: 2 3 4 5
8# Default-Stop: 0 1 6
9### END INIT INFO
10
11killproc() { # kill the named process(es)
12 pid=`/bin/pidof $1`
13 [ "$pid" != "" ] && kill $pid
14}
15
16read CMDLINE < /proc/cmdline
17for x in $CMDLINE; do
18 case $x in
19 x11=false)
20 echo "X Server disabled"
21 exit 0;
22 ;;
23 esac
24done
25
26case "$1" in
27 start)
28 . /etc/profile
29 username=root
30 echo "Starting Xserver"
31 if [ -f /etc/X11/Xusername ]; then
32 username=`cat /etc/X11/Xusername`
33 fi
34 # Using sudo -i here has the nice side effect of making sire
35 # HOME, USER and other previously problematic variables
36 # are set correctly
37 sudo -b -i -u $username /etc/X11/Xserver
38 # Wait for the desktop to say its finished loading
39 dbus-wait org.matchbox_project.desktop Loaded
40 ;;
41
42 stop)
43 echo "Stopping XServer"
44 killproc xinit
45 ;;
46
47 restart)
48 $0 stop
49 sleep 1
50 $0 start
51 ;;
52
53 *)
54 echo "usage: $0 { start | stop | restart }"
55 ;;
56esac
57
58exit 0