diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-09-05 15:25:24 +0200 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2019-10-21 14:22:19 +0200 |
commit | 44da2e034451b5a1c4ea735ab0296da085692bab (patch) | |
tree | 26c25592fd92ef3438dec177f383011a09e4f13e | |
parent | 556ff0987539271647535094309605433f2aa96f (diff) | |
download | upstream-44da2e034451b5a1c4ea735ab0296da085692bab.tar.gz upstream-44da2e034451b5a1c4ea735ab0296da085692bab.tar.bz2 upstream-44da2e034451b5a1c4ea735ab0296da085692bab.zip |
ath79: fix whitespaces in 10_fix_wifi_mac
This converts leading whitespaces to tabs and removes a double
newline at the end of the file.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
-rw-r--r-- | target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac index 3e1cfda84d..2e2179aee3 100644 --- a/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac +++ b/target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac @@ -35,14 +35,13 @@ case "$board" in k2t_get_mac "lan_mac" > /sys${DEVPATH}/macaddress ;; trendnet,tew-823dru) - # set the 2.4G interface mac address to LAN MAC - [ "$PHYNBR" -eq 1 ] && \ - mtd_get_mac_text mac 4 > /sys${DEVPATH}/macaddress - # set the 5G interface mac address to WAN MAC + 1 - [ "$PHYNBR" -eq 0 ] && \ - macaddr_add "$(mtd_get_mac_text mac 0x18)" 1 > /sys${DEVPATH}/macaddress - ;; + # set the 2.4G interface mac address to LAN MAC + [ "$PHYNBR" -eq 1 ] && \ + mtd_get_mac_text mac 4 > /sys${DEVPATH}/macaddress + # set the 5G interface mac address to WAN MAC + 1 + [ "$PHYNBR" -eq 0 ] && \ + macaddr_add "$(mtd_get_mac_text mac 0x18)" 1 > /sys${DEVPATH}/macaddress + ;; *) ;; esac - |