[OpenWrt-Devel] [PATCH 2/2] openwrt-19.07: ar71xx: Code style fixes in 10_fix_wifi_mac

Adrian Schmutzler freifunk at adrianschmutzler.de
Sat Jun 22 05:31:57 EDT 2019


This fixes one comparison and one useless echo.

Signed-off-by: Adrian Schmutzler <freifunk at adrianschmutzler.de>
---
 .../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
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list