diff options
-rw-r--r-- | meta/packages/xserver-kdrive-common/xserver-nodm-init.bb | 2 | ||||
-rwxr-xr-x | meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb b/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb index d1ed98dfaf..cea9f0cb28 100644 --- a/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb +++ b/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb | |||
@@ -2,7 +2,7 @@ DESCRIPTION = "Simple Xserver Init Script (no dm)" | |||
2 | LICENSE = "GPL" | 2 | LICENSE = "GPL" |
3 | SECTION = "x11" | 3 | SECTION = "x11" |
4 | PRIORITY = "optional" | 4 | PRIORITY = "optional" |
5 | PR = "r7" | 5 | PR = "r8" |
6 | 6 | ||
7 | SRC_URI = "file://xserver-nodm" | 7 | SRC_URI = "file://xserver-nodm" |
8 | S = ${WORKDIR} | 8 | S = ${WORKDIR} |
diff --git a/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm index be405bc008..a56edaa15b 100755 --- a/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm +++ b/meta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm | |||
@@ -8,6 +8,15 @@ killproc() { # kill the named process(es) | |||
8 | [ "$pid" != "" ] && kill $pid | 8 | [ "$pid" != "" ] && kill $pid |
9 | } | 9 | } |
10 | 10 | ||
11 | for x in $(cat /proc/cmdline); do | ||
12 | case $x in | ||
13 | x11=false) | ||
14 | echo "X Server disabled" | ||
15 | exit 0; | ||
16 | ;; | ||
17 | esac | ||
18 | done | ||
19 | |||
11 | case "$1" in | 20 | case "$1" in |
12 | start) | 21 | start) |
13 | # We don't want this script to block the rest of the boot process | 22 | # We don't want this script to block the rest of the boot process |