1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

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
This commit is contained in:
Richard Purdie
2008-08-19 21:42:36 +00:00
parent 04066bd057
commit 76b5863170
2 changed files with 6 additions and 5 deletions
+3 -2
View File
@@ -7,7 +7,8 @@
# Default-Stop: # Default-Stop:
### END INIT INFO ### END INIT INFO
for x in $(cat /proc/cmdline); do read CMDLINE < /proc/cmdline
for x in $CMDLINE; do
case $x in case $x in
psplash=false) psplash=false)
echo "Boot splashscreen disabled" echo "Boot splashscreen disabled"
@@ -21,7 +22,7 @@ mount tmpfs -t tmpfs $TMPDIR -o,size=40k
rotation=0 rotation=0
if [ -e /etc/rotation ]; then if [ -e /etc/rotation ]; then
rotation=`cat /etc/rotation` read rotation < /etc/rotation
fi fi
/usr/bin/psplash --angle $rotation & /usr/bin/psplash --angle $rotation &
+3 -3
View File
@@ -2,7 +2,7 @@ DESCRIPTION = "Userspace framebuffer boot logo based on usplash."
SECTION = "base" SECTION = "base"
LICENSE = "GPL" LICENSE = "GPL"
PV = "0.0+svnr${SRCREV}" PV = "0.0+svnr${SRCREV}"
PR = "r3" PR = "r4"
SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \ SRC_URI = "svn://svn.o-hand.com/repos/misc/trunk;module=psplash;proto=http \
file://psplash-init" file://psplash-init"
@@ -16,8 +16,8 @@ FILES_${PN} += "/mnt/.psplash"
do_install_prepend() { do_install_prepend() {
install -d ${D}/mnt/.psplash/ install -d ${D}/mnt/.psplash/
install -d ${D}${sysconfdir}/init.d/ install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/psplash-init ${D}${sysconfdir}/init.d/psplash install -m 0755 ${WORKDIR}/psplash-init ${D}${sysconfdir}/init.d/psplash.sh
} }
INITSCRIPT_NAME = "psplash" INITSCRIPT_NAME = "psplash.sh"
INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ." INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ."