mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00: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"
|
LICENSE = "GPL"
|
||||||
SECTION = "x11"
|
SECTION = "x11"
|
||||||
PRIORITY = "optional"
|
PRIORITY = "optional"
|
||||||
PR = "r7"
|
PR = "r8"
|
||||||
|
|
||||||
SRC_URI = "file://xserver-nodm"
|
SRC_URI = "file://xserver-nodm"
|
||||||
S = ${WORKDIR}
|
S = ${WORKDIR}
|
||||||
|
|||||||
@@ -8,6 +8,15 @@ killproc() { # kill the named process(es)
|
|||||||
[ "$pid" != "" ] && kill $pid
|
[ "$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
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
# We don't want this script to block the rest of the boot process
|
# We don't want this script to block the rest of the boot process
|
||||||
|
|||||||
Reference in New Issue
Block a user