mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user