mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-26 06:09:37 +00:00
21 lines
295 B
Plaintext
21 lines
295 B
Plaintext
|
#!/bin/ash
|
||
|
|
||
|
[ "$ACTION" == "add" ] || exit 0
|
||
|
|
||
|
PHYNBR=${DEVPATH##*/phy}
|
||
|
|
||
|
[ -n $PHYNBR ] || exit 0
|
||
|
|
||
|
. /lib/functions.sh
|
||
|
. /lib/functions/system.sh
|
||
|
|
||
|
board=$(board_name)
|
||
|
|
||
|
case "$board" in
|
||
|
sophos,red-15w-rev1)
|
||
|
echo $(mtd_get_mac_ascii u-boot-env ethaddr) > /sys${DEVPATH}/macaddress
|
||
|
;;
|
||
|
*)
|
||
|
;;
|
||
|
esac
|