aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
diff options
context:
space:
mode:
authorMartin Blumenstingl <martin.blumenstingl@googlemail.com>2016-09-24 00:07:25 +0200
committerDaniel Golle <daniel@makrotopia.org>2016-09-24 01:17:17 +0200
commite9de6e5203c02660451f9f1634c87246871106be (patch)
tree92fd42d601b108bc20fb7dfed4c6025037dcd0bb /target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
parent6177b649ca8cd11545fe945245b449236ac4bd50 (diff)
downloadupstream-e9de6e5203c02660451f9f1634c87246871106be.tar.gz
upstream-e9de6e5203c02660451f9f1634c87246871106be.tar.bz2
upstream-e9de6e5203c02660451f9f1634c87246871106be.zip
lantiq: 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/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata')
-rw-r--r--target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
index 0d8084fa10..dc95da78a5 100644
--- a/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
+++ b/target/linux/lantiq/base-files/etc/hotplug.d/firmware/11-ath10k-caldata
@@ -35,11 +35,11 @@ ath10k_caldata_set_macaddr() {
case "$FIRMWARE" in
"ath10k/cal-pci-0000:02:00.0.bin")
- local board=$(lantiq_board_name)
+ board=$(lantiq_board_name)
case $board in
BTHOMEHUBV5A)
- local lan_mac=$(mtd_get_mac_binary caldata 4364)
- local wifi_mac=$(macaddr_add "$lan_mac" 3)
+ lan_mac=$(mtd_get_mac_binary caldata 4364)
+ wifi_mac=$(macaddr_add "$lan_mac" 3)
ath10k_caldata_extract "caldata" 20480
ath10k_caldata_set_macaddr $wifi_mac
;;