OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | #!/bin/sh |
2 | |||
3 | . /lib/functions.sh |
||
4 | |||
5 | preinit_set_mac_address() { |
||
6 | case $(board_name) in |
||
7 | meraki,mr33) |
||
8 | mac_lan=$(get_mac_binary "/sys/bus/i2c/devices/0-0050/eeprom" 102) |
||
9 | [ -n "$mac_lan" ] && ip link set dev eth0 address "$mac_lan" |
||
10 | ;; |
||
11 | esac |
||
12 | } |
||
13 | |||
14 | boot_hook_add preinit_main preinit_set_mac_address |