ath79: fix whitespaces in 10_fix_wifi_mac
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 5 Sep 2019 13:25:24 +0000 (15:25 +0200)
committerJohn Crispin <john@phrozen.org>
Mon, 21 Oct 2019 12:22:19 +0000 (14:22 +0200)
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>
target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac

index 3e1cfda84db4b10dd4e299a6ab84719f6ce9a33d..2e2179aee3ba55d8a1b5518a3db0d2e63351ffc7 100644 (file)
@@ -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
-