[oe-commits] Otavio Salvador : psplash: improve how to detect boot param to avoid the psplash starting
GIT User account
git at amethyst.openembedded.net
Mon Feb 23 17:34:27 UTC 2009
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 0ba9afbe37a6ffaaefae3d37c79cb921f60317a2
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=0ba9afbe37a6ffaaefae3d37c79cb921f60317a2
Author: Otavio Salvador <otavio at ossystems.com.br>
Date: Mon Feb 23 14:19:34 2009 -0300
psplash: improve how to detect boot param to avoid the psplash starting
It was done using a looping through cmdline contents but it failed
depending on params order; using a grep makes it works more reliably.
---
packages/psplash/files/psplash-init | 12 ++++--------
packages/psplash/psplash_svn.bb | 2 +-
2 files changed, 5 insertions(+), 9 deletions(-)
diff --git a/packages/psplash/files/psplash-init b/packages/psplash/files/psplash-init
index 7796a79..a4fb1dc 100644
--- a/packages/psplash/files/psplash-init
+++ b/packages/psplash/files/psplash-init
@@ -1,13 +1,9 @@
#!/bin/sh
-for x in $(cat /proc/cmdline); do
- case $x in
- psplash=false)
- echo "Boot splashscreen disabled"
- exit 0;
- ;;
- esac
-done
+if grep -qE '\s?psplash=false\s?' /proc/cmdline; then
+ echo "Boot splashscreen disabled"
+ exit 0;
+fi
. /etc/init.d/functions
. /etc/default/psplash
diff --git a/packages/psplash/psplash_svn.bb b/packages/psplash/psplash_svn.bb
index e7cbda5..f471396 100644
--- a/packages/psplash/psplash_svn.bb
+++ b/packages/psplash/psplash_svn.bb
@@ -3,7 +3,7 @@ require psplash-ua.inc
ALTERNATIVE_PRIORITY = "10"
-PR = "r17"
+PR = "r18"
SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \
file://psplash-hand-img.h \
More information about the Openembedded-commits
mailing list