OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line 7... Line 7...
7 [ -n $PHYNBR ] || exit 0 7 [ -n $PHYNBR ] || exit 0
Line 8... Line 8...
8   8  
9 . /lib/functions.sh 9 . /lib/functions.sh
Line 10... Line -...
10 . /lib/functions/system.sh -  
11   10 . /lib/functions/system.sh
Line 12... Line 11...
12 OPATH=${DEVPATH##/devices/platform/} 11  
13 OPATH=${OPATH%%/ieee*} 12 board=$(board_name)
-   13  
14   14 case "$board" in
-   15 linksys,ea8500)
15 # 10 radios is enough for anyone! 16 echo $(macaddr_add $(mtd_get_mac_ascii devinfo hw_mac_addr) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
-   17 ;;
16 for i in `seq 0 9`; 18 nec,wg2600hp)
17 do 19 echo $(macaddr_add $(mtd_get_mac_binary PRODUCTDATA 12) $((1 - $PHYNBR)) ) > /sys${DEVPATH}/macaddress
18 BUS=`uci get wireless.@wifi-device[$i].path` 20 ;;
19 if [ "$BUS " == "$OPATH " ] 21 netgear,d7800 |\
20 then 22 netgear,r7500v2 |\
21 PHYNAME=${DEVPATH##*ieee80211/} 23 netgear,r7800)
22 NPHYNAME=`uci get wireless.@wifi-device[$i].phyname` 24 echo $(macaddr_add $(mtd_get_mac_binary art 6) $(($PHYNBR + 1)) ) > /sys${DEVPATH}/macaddress
-   25 ;;
23 if [ "$NPHYNAME " != " " ] 26 tplink,c2600)
24 then 27 echo $(macaddr_add $(mtd_get_mac_binary default-mac 8) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
-   28 ;;
25 if [ "$PHYNAME " != "$NPHYNAME " ] 29 tplink,vr2600v)
-   30 echo $(macaddr_add $(mtd_get_mac_binary default-mac 0) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
26 then 31 ;;
-   32 zyxel,nbg6817)
27 iw $PHYNAME set name $NPHYNAME 33 echo $(macaddr_add $(mtd_get_mac_ascii 0:APPSBLENV ethaddr) $((1 - $PHYNBR)) ) > /sys${DEVPATH}/macaddress
28 fi 34 ;;