aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/mt7621/base-files
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ramips/mt7621/base-files')
-rw-r--r--target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac6
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
index 4349a3592d..711af4e3af 100644
--- a/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
+++ b/target/linux/ramips/mt7621/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac
@@ -16,10 +16,10 @@ case "$board" in
> /sys${DEVPATH}/macaddress
;;
dlink,dir-853-r1)
- [ "$PHYNBR" = "0" ] && \
- base_mac=$(mtd_get_mac_binary factory 0x4)
- base_mac=$(macaddr_add "$base_mac" -1)
+ if [ "$PHYNBR" = "0" ]; then
+ base_mac=$(macaddr_add "$(mtd_get_mac_binary factory 0x4)" -1)
macaddr_setbit_la "$base_mac" > /sys${DEVPATH}/macaddress
+ fi
;;
glinet,gl-mt1300)
[ "$PHYNBR" = "1" ] && \