aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2016-09-24 00:07:24 +0200
committerDaniel Golle <daniel@makrotopia.org>2016-09-24 01:17:18 +0200
commitd72e838429cbe7638b383b99bf16d97a63f80837 (patch)
treecf942bcfb88405ee4248cca0946e8f84267f750a /target/linux
parente9de6e5203c02660451f9f1634c87246871106be (diff)
downloadupstream-d72e838429cbe7638b383b99bf16d97a63f80837.tar.gz
upstream-d72e838429cbe7638b383b99bf16d97a63f80837.tar.bz2
upstream-d72e838429cbe7638b383b99bf16d97a63f80837.zip
ramips: do not "local" variables outside of a function
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@googlemail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/base-files/etc/hotplug.d/firmware/10-rt2x00-eeprom2
1 files changed, 1 insertions, 1 deletions
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 0e02177f70..4c8beac066 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
;;