local board="$1"
case "$board" in
+ "avm,fritz300e"|\
"ubnt,unifi")
ucidef_set_interface_lan "eth0"
;;
esac
}
+ath79_setup_macs()
+{
+ local board="$1"
+
+ case "$board" in
+ avm,fritz300e)
+ lan_mac=$(fritz_tffs -n maca -i $(find_mtd_part "tffs (1)"))
+ ;;
+ esac
+
+ [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac
+}
+
board_config_update
board=$(board_name)
ath79_setup_interfaces $board
+ath79_setup_macs $board
board_config_flush
exit 0