You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
326 B
Plaintext
19 lines
326 B
Plaintext
[ "$ACTION" = "add" ] || exit 0
|
|
|
|
PHYNBR=${DEVPATH##*/phy}
|
|
|
|
[ -n $PHYNBR ] || exit 0
|
|
|
|
. /lib/functions.sh
|
|
. /lib/functions/system.sh
|
|
|
|
board=$(board_name)
|
|
|
|
case $board in
|
|
zyxel,nbg6716)
|
|
# Set mac address for 2.4g device
|
|
[ "$PHYNBR" -eq 1 ] && \
|
|
mtd_get_mac_ascii u-boot-env ethaddr > /sys${DEVPATH}/macaddress
|
|
;;
|
|
esac
|