Message ID | 20190622093157.1372-2-freifunk@adrianschmutzler.de |
---|---|
State | Rejected |
Headers | show |
Series | [OpenWrt-Devel,1/2] openwrt-19.07: ath79: Code style fixes in 10_fix_wifi_mac | expand |
diff --git a/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac index b58cf9b591..1082ad4ad3 100644 --- a/target/linux/ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac +++ b/target/linux/ar71xx/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,7 +17,7 @@ case "$board" in archer-c59-v2|\ archer-c60-v1|\ archer-c60-v2) - echo $(macaddr_add $(mtd_get_mac_binary mac 8) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress + macaddr_add $(mtd_get_mac_binary mac 8) $(($PHYNBR - 1)) > /sys${DEVPATH}/macaddress ;; *) ;;
This fixes one comparison and one useless echo. Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> --- .../ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)