diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2019-06-22 01:53:57 +0200 |
---|---|---|
committer | Christian Lamparter <chunkeey@gmail.com> | 2019-06-25 00:52:35 +0200 |
commit | b16faf9bc725134c54a5976d979e94c9feb75446 (patch) | |
tree | bf6b53c2e206416eca4b42e3a822edfb05e03d19 /target/linux | |
parent | 82a8ddd603707a130acf5ec1f54d9093d46acad4 (diff) | |
download | upstream-b16faf9bc725134c54a5976d979e94c9feb75446.tar.gz upstream-b16faf9bc725134c54a5976d979e94c9feb75446.tar.bz2 upstream-b16faf9bc725134c54a5976d979e94c9feb75446.zip |
ath79: Code style improvements in 10_fix_wifi_mac
This fixes one comparison and several useless echos.
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/ath79/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 8 |
1 files changed, 4 insertions, 4 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 2da2e8bfb0..bdb8b71ff7 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 @@ -1,6 +1,6 @@ #!/bin/ash -[ "$ACTION" == "add" ] || exit 0 +[ "$ACTION" = "add" ] || exit 0 PHYNBR=${DEVPATH##*/phy} @@ -17,18 +17,18 @@ case "$board" in # There is no eeprom data for 5 GHz wlan in "art" partition # which would allow to patch the macaddress [ "$PHYNBR" -eq 1 ] && \ - echo $(macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1) > /sys${DEVPATH}/macaddress + macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys${DEVPATH}/macaddress ;; iodata,wn-ac1600dgr) # There is no eeprom data for 5 GHz wlan in "art" partition # which would allow to patch the macaddress [ "$PHYNBR" -eq 0 ] && \ - echo $(macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1) > /sys${DEVPATH}/macaddress + macaddr_add "$(mtd_get_mac_ascii u-boot-env ethaddr)" 1 > /sys${DEVPATH}/macaddress ;; phicomm,k2t) # The K2T factory firmware does use LAN mac address as the 2.4G wifi mac address [ "$PHYNBR" -eq 1 ] && \ - echo $(k2t_get_mac "lan_mac") > /sys${DEVPATH}/macaddress + k2t_get_mac "lan_mac" > /sys${DEVPATH}/macaddress ;; *) ;; |