home: hub: mkinitfs

Download patch

ref: 703b6780d8ee87bc5de7e304473aaa5923191df5
parent: 7673ee7d1ce6786a5471ead15513d62027c9756a
author: Natanael Copa <ncopa@alpinelinux.org>
date: Thu Aug 4 08:24:46 CDT 2016

init: dont use local in global scope

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -493,12 +493,11 @@
 
 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 @@
 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