From 703b6780d8ee87bc5de7e304473aaa5923191df5 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 4 Aug 2016 13:24:46 +0200 Subject: init: dont use local in global scope --- initramfs-init.in | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'initramfs-init.in') 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 -- cgit v1.2.3