diff options
Diffstat (limited to 'meta/packages/psplash/files/psplash-init')
| -rwxr-xr-x | meta/packages/psplash/files/psplash-init | 5 |
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 @@ | |||
| 7 | # Default-Stop: | 7 | # Default-Stop: |
| 8 | ### END INIT INFO | 8 | ### END INIT INFO |
| 9 | 9 | ||
| 10 | for x in $(cat /proc/cmdline); do | 10 | read CMDLINE < /proc/cmdline |
| 11 | for x in $CMDLINE; do | ||
| 11 | case $x in | 12 | case $x in |
| 12 | psplash=false) | 13 | psplash=false) |
| 13 | echo "Boot splashscreen disabled" | 14 | echo "Boot splashscreen disabled" |
| @@ -21,7 +22,7 @@ mount tmpfs -t tmpfs $TMPDIR -o,size=40k | |||
| 21 | 22 | ||
| 22 | rotation=0 | 23 | rotation=0 |
| 23 | if [ -e /etc/rotation ]; then | 24 | if [ -e /etc/rotation ]; then |
| 24 | rotation=`cat /etc/rotation` | 25 | read rotation < /etc/rotation |
| 25 | fi | 26 | fi |
| 26 | 27 | ||
| 27 | /usr/bin/psplash --angle $rotation & | 28 | /usr/bin/psplash --angle $rotation & |
