aboutsummaryrefslogtreecommitdiffstats
path: root/initramfs-init.in
diff options
context:
space:
mode:
Diffstat (limited to 'initramfs-init.in')
-rwxr-xr-xinitramfs-init.in7
1 files changed, 3 insertions, 4 deletions
diff --git a/initramfs-init.in b/initramfs-init.in
index 78bcbe4..da3ee71 100755
--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -493,12 +493,11 @@ fi
if [ "$KOPT_splash" != "no" ]; then
echo "IMAGE_ALIGN=CM" > /tmp/fbsplash.cfg
- local fbdev img
for fbdev in /dev/fb[0-9]; do
[ -e "$fbdev" ] || break
- local num="${fbdev#/dev/fb}"
+ num="${fbdev#/dev/fb}"
for img in /media/*/fbsplash$num.ppm; do
- local config="${img%.*}.cfg"
+ config="${img%.*}.cfg"
[ -e "$config" ] || config=/tmp/fbsplash.cfg
fbsplash -s "$img" -d "$fbdev" -i "$config"
break
@@ -512,7 +511,7 @@ fi
if [ -n "$fbsplash" ] && [ -e "$fbsplash" ]; then
ebegin "Starting bootsplash"
mkfifo $sysroot/$splashfile
- local config="${fbsplash%.*}.cfg"
+ config="${fbsplash%.*}.cfg"
[ -e "$config" ] || config=/tmp/fbsplash.cfg
setsid fbsplash -T 16 -s "$fbsplash" -i $config -f $sysroot/$splashfile &
eend 0