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.
21 lines
456 B
Bash
21 lines
456 B
Bash
#!/bin/sh
|
|
|
|
. /lib/functions.sh
|
|
|
|
preinit_set_mac_address() {
|
|
case $(board_name) in
|
|
avm,fritz1750e|\
|
|
avm,fritz450e)
|
|
ip link set dev eth0 address $(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
|
|
;;
|
|
enterasys,ws-ap3705i)
|
|
ip link set dev eth0 address $(mtd_get_mac_ascii u-boot-env0 ethaddr)
|
|
;;
|
|
siemens,ws-ap3610)
|
|
ip link set dev eth0 address $(mtd_get_mac_ascii cfg1 ethaddr)
|
|
;;
|
|
esac
|
|
}
|
|
|
|
boot_hook_add preinit_main preinit_set_mac_address
|