mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
xserver-nodm: Remove another fork, no need to use cat here
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5081 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 = "r16"
|
||||
PR = "r17"
|
||||
RDEPENDS = "dbus-wait"
|
||||
|
||||
SRC_URI = "file://xserver-nodm"
|
||||
|
||||
@@ -13,7 +13,8 @@ killproc() { # kill the named process(es)
|
||||
[ "$pid" != "" ] && kill $pid
|
||||
}
|
||||
|
||||
for x in $(cat /proc/cmdline); do
|
||||
read CMDLINE < /proc/cmdline
|
||||
for x in $CMDLINE; do
|
||||
case $x in
|
||||
x11=false)
|
||||
echo "X Server disabled"
|
||||
|
||||
Reference in New Issue
Block a user