From f8b1e634eb3cfc6e59e9fe11b8a198aec6bd3d29 Mon Sep 17 00:00:00 2001 From: Matthew Allum Date: Sun, 3 Sep 2006 14:26:12 +0000 Subject: Check /proc/cmdline for 'x11=false' to disable X server startup git-svn-id: https://svn.o-hand.com/repos/poky/trunk@695 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- meta/packages/xserver-kdrive-common/xserver-nodm-init.bb | 2 +- .../xserver-kdrive-common/xserver-nodm-init/xserver-nodm | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb b/meta/packages/xserver-kdrive-common/xserver-nodm-init.bb index d1ed98dfa..cea9f0cb2 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)" LICENSE = "GPL" SECTION = "x11" PRIORITY = "optional" -PR = "r7" +PR = "r8" SRC_URI = "file://xserver-nodm" 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 be405bc00..a56edaa15 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 -- cgit v1.2.3