This fixes one comparison and one useless echo.

Signed-off-by: Adrian Schmutzler <[email protected]>
---
 .../ar71xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
                ;;
        *)
                ;;
-- 
2.20.1


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to