projects
/
openwrt
/
staging
/
chunkeey.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a78a1054f1886d041c0ab8ad57543ca06379332e
[openwrt/staging/chunkeey.git]
/
target
/
linux
/
apm821xx
/
base-files
/
etc
/
hotplug.d
/
ieee80211
/
10_fix_wifi_mac
1
#!/bin/ash
2
3
[
"
$ACTION
"
=
"add"
]
||
exit
0
4
5
PHYNBR
=
${DEVPATH##*/phy}
6
7
[
-n
"
$PHYNBR
"
]
||
exit
0
8
9
.
/
lib
/
functions.sh
10
.
/
lib
/
function
s
/
system.sh
11
12
board
=
$
(
board_name
)
13
14
case
"
$board
"
in
15
netgear
,
wndap620|\
16
netgear
,
wndap660
)
17
macaddr_add $
(
mtd_get_mac_ascii u-boot-env baseMAC
)
$
((
$PHYNBR
+
1
)) > /
sys
${DEVPATH}
/
macaddress
18
;;
19
*)
20
;;
21
esac