2014-11-26 09:00:08 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2015-12-11 15:26:06 +00:00
|
|
|
. /lib/functions/uci-defaults.sh
|
2014-11-26 09:00:08 +00:00
|
|
|
. /lib/functions/system.sh
|
2016-09-04 01:34:19 +00:00
|
|
|
. /lib/oxnas.sh
|
2014-11-26 09:00:08 +00:00
|
|
|
|
|
|
|
board_config_update
|
|
|
|
|
2016-09-04 01:34:19 +00:00
|
|
|
lan_mac=""
|
|
|
|
|
2017-05-12 20:36:07 +00:00
|
|
|
case "$(board_name)" in
|
2016-09-04 01:34:19 +00:00
|
|
|
kd20)
|
|
|
|
lan_mac="$(legacy_boot_mac_adr)"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2016-07-18 17:37:43 +00:00
|
|
|
ucidef_set_interface_lan "eth0" "dhcp"
|
2016-09-10 07:46:14 +00:00
|
|
|
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"
|
2014-11-26 09:00:08 +00:00
|
|
|
|
|
|
|
board_config_flush
|
|
|
|
|
|
|
|
exit 0
|