projects
/
librecmc
/
librecmc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Rebased from upstream / out of band repository.
[librecmc/librecmc.git]
/
target
/
linux
/
ar71xx
/
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/functions/system.sh
11
12
board=$(board_name)
13
14
case "$board" in
15
archer-c58-v1|\
16
archer-c59-v1|\
17
archer-c59-v2|\
18
archer-c60-v1|\
19
archer-c60-v2)
20
echo $(macaddr_add $(mtd_get_mac_binary mac 8) $(($PHYNBR - 1)) ) > /sys${DEVPATH}/macaddress
21
;;
22
*)
23
;;
24
esac
25