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
This commit is contained in:
parent
f1f8c5a6a7
commit
f8b1e634eb
|
@ -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}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue