diff options
author | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-17 23:09:37 +0200 |
---|---|---|
committer | Adrian Schmutzler <freifunk@adrianschmutzler.de> | 2020-08-17 23:09:37 +0200 |
commit | 1a75443964558e67a29fac28ded9a15dbb715034 (patch) | |
tree | 1984ffce346382f84f8e36ac71f64f82db2fb03b /target/linux | |
parent | e329e71c6915ffdf7fe99efc323a6de7867d0cbe (diff) | |
download | upstream-1a75443964558e67a29fac28ded9a15dbb715034.tar.gz upstream-1a75443964558e67a29fac28ded9a15dbb715034.tar.bz2 upstream-1a75443964558e67a29fac28ded9a15dbb715034.zip |
apm821xx: tidy up 10-fix-wifi-mac
This applies some cosmetic style fixes:
- remove useless echo
- remove double equal sign (specific to bash)
- add quotes for -n check
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target/linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac b/target/linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac index 597b5dcca6..a78a1054f1 100644 --- a/target/linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac +++ b/target/linux/apm821xx/base-files/etc/hotplug.d/ieee80211/10_fix_wifi_mac @@ -1,10 +1,10 @@ #!/bin/ash -[ "$ACTION" == "add" ] || exit 0 +[ "$ACTION" = "add" ] || exit 0 PHYNBR=${DEVPATH##*/phy} -[ -n $PHYNBR ] || exit 0 +[ -n "$PHYNBR" ] || exit 0 . /lib/functions.sh . /lib/functions/system.sh @@ -14,7 +14,7 @@ board=$(board_name) case "$board" in netgear,wndap620|\ netgear,wndap660) - echo $(macaddr_add $(mtd_get_mac_ascii u-boot-env baseMAC) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress + macaddr_add $(mtd_get_mac_ascii u-boot-env baseMAC) $(($PHYNBR + 1)) > /sys${DEVPATH}/macaddress ;; *) ;; |