summaryrefslogtreecommitdiff
path: root/meta/packages/psplash/files
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-08-19 21:42:36 +0000
committerRichard Purdie <richard@openedhand.com>2008-08-19 21:42:36 +0000
commit76b5863170eebf5ea61fcbf79eb963d4c9092352 (patch)
treeae457347a9a0d9ed089eac305d8c61360071a8d7 /meta/packages/psplash/files
parent04066bd057c80b72c4472b05e537fa8522f750aa (diff)
downloadopenembedded-core-76b5863170eebf5ea61fcbf79eb963d4c9092352.tar.gz
openembedded-core-76b5863170eebf5ea61fcbf79eb963d4c9092352.tar.bz2
openembedded-core-76b5863170eebf5ea61fcbf79eb963d4c9092352.zip
psplash: Remove pointless cat calls, promote to .sh initscript
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5083 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/psplash/files')
-rwxr-xr-xmeta/packages/psplash/files/psplash-init5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/packages/psplash/files/psplash-init b/meta/packages/psplash/files/psplash-init
index ea370d622b..66c85e9335 100755
--- a/meta/packages/psplash/files/psplash-init
+++ b/meta/packages/psplash/files/psplash-init
@@ -7,7 +7,8 @@
# Default-Stop:
### END INIT INFO
-for x in $(cat /proc/cmdline); do
+read CMDLINE < /proc/cmdline
+for x in $CMDLINE; do
case $x in
psplash=false)
echo "Boot splashscreen disabled"
@@ -21,7 +22,7 @@ mount tmpfs -t tmpfs $TMPDIR -o,size=40k
rotation=0
if [ -e /etc/rotation ]; then
- rotation=`cat /etc/rotation`
+ read rotation < /etc/rotation
fi
/usr/bin/psplash --angle $rotation &