3 [ "$ACTION" == "add" ] ||
exit 0
5 PHYNBR
=${DEVPATH##*/phy}
7 [ -n $PHYNBR ] ||
exit 0
10 .
/lib
/functions
/system.sh
12 OPATH
=${DEVPATH##/devices/platform/}
13 OPATH
=${OPATH%%/ieee*}
15 # 10 radios is enough for anyone!
18 BUS
=`uci get wireless.@wifi-device[$i].path`
19 if [ "$BUS " == "$OPATH " ]
21 PHYNAME
=${DEVPATH##*ieee80211/}
22 NPHYNAME
=`uci get wireless.@wifi-device[$i].phyname`
23 if [ "$NPHYNAME " != " " ]
25 if [ "$PHYNAME " != "$NPHYNAME " ]
27 iw
$PHYNAME set name
$NPHYNAME