summaryrefslogtreecommitdiff
path: root/meta/packages/xserver-kdrive-common/xserver-nodm-init
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/xserver-kdrive-common/xserver-nodm-init')
-rwxr-xr-xmeta/packages/xserver-kdrive-common/xserver-nodm-init/xserver-nodm9
1 files changed, 9 insertions, 0 deletions
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)
[ "$pid" != "" ] && kill $pid
}
+for x in $(cat /proc/cmdline); do
+ case $x in
+ x11=false)
+ echo "X Server disabled"
+ exit 0;
+ ;;
+ esac
+done
+
case "$1" in
start)
# We don't want this script to block the rest of the boot process