[LEDE-DEV] [PATCH 1/2] ramips: do not "local" variables outside of a function

Martin Blumenstingl martin.blumenstingl at googlemail.com
Fri Sep 23 15:07:24 PDT 2016


Older busybox versions allowed using the local keyword outside of
functions, whereas 1.25.0 (which was introduced in 06fa1c46fc32) do not
allow this anymore (leading to the following error when executing the
script: "file: local: line nn: not in a function").

Signed-off-by: Martin Blumenstingl <martin.blumenstingl at googlemail.com>
---
 target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
index 0e02177..4c8beac 100644
--- a/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
+++ b/target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom
@@ -58,7 +58,7 @@ case "$FIRMWARE" in
 		rt2x00_eeprom_extract "factory" 32768 512
 		;;
 	tiny-ac)
-		local wifi_mac=$(mtd_get_mac_ascii u-boot-env INIC_MAC_ADDR)
+		wifi_mac=$(mtd_get_mac_ascii u-boot-env INIC_MAC_ADDR)
 		rt2x00_eeprom_extract "factory" 0 512
 		rt2x00_eeprom_set_macaddr $wifi_mac
 		;;
-- 
2.10.0




More information about the Lede-dev mailing list