projects
/
oweals
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
371efd6a8376573d2e4878e5898e152104bc4be3
[oweals/openwrt.git]
/
target
/
linux
/
ath79
/
generic
/
base-files
/
lib
/
preinit
/
10_fix_eth_mac.sh
1
#!/bin/sh
2
3
. /lib/functions.sh
4
5
preinit_set_mac_address() {
6
case $(board_name) in
7
avm,fritz1750e)
8
ip link set dev eth0 address $(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
9
;;
10
siemens,ws-ap3610)
11
ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
12
;;
13
esac
14
}
15
16
boot_hook_add preinit_main preinit_set_mac_address