mpc85xx: tidy up 10-fix-wifi-mac

This applies some cosmetic style fixes, mostly by removing useless
echo commands.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
This commit is contained in:
Adrian Schmutzler 2020-08-13 20:22:30 +02:00
parent 072c5876c5
commit 488da882f5

View File

@ -1,10 +1,10 @@
#!/bin/ash #!/bin/ash
[ "$ACTION" == "add" ] || exit 0 [ "$ACTION" = "add" ] || exit 0
PHYNBR=${DEVPATH##*/phy} PHYNBR=${DEVPATH##*/phy}
[ -n $PHYNBR ] || exit 0 [ -n "$PHYNBR" ] || exit 0
. /lib/functions.sh . /lib/functions.sh
. /lib/functions/system.sh . /lib/functions/system.sh
@ -13,16 +13,12 @@ board=$(board_name)
case "$board" in case "$board" in
enterasys,ws-ap3710i) enterasys,ws-ap3710i)
echo $(mtd_get_mac_ascii cfg2 RADIOADDR${PHYNBR}) > /sys${DEVPATH}/macaddress mtd_get_mac_ascii cfg2 RADIOADDR${PHYNBR} > /sys${DEVPATH}/macaddress
;; ;;
ocedo,panda) ocedo,panda)
WMAC=wmac$(($PHYNBR + 1)) mtd_get_mac_ascii uboot-env0 wmac$(($PHYNBR + 1)) > /sys${DEVPATH}/macaddress
MAC=$(mtd_get_mac_ascii uboot-env0 ${WMAC})
echo ${MAC} > /sys${DEVPATH}/macaddress
;; ;;
sophos,red-15w-rev1) sophos,red-15w-rev1)
echo $(mtd_get_mac_ascii u-boot-env ethaddr) > /sys${DEVPATH}/macaddress mtd_get_mac_ascii u-boot-env ethaddr > /sys${DEVPATH}/macaddress
;;
*)
;; ;;
esac esac