summaryrefslogtreecommitdiff
path: root/target/linux/oxnas/base-files/etc/board.d/02_network
blob: 7ecaed51bfe6acf21fc0f722e6844d984bde0e50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

. /lib/functions/uci-defaults.sh
. /lib/functions/system.sh
. /lib/oxnas.sh

board_config_update

lan_mac=""

case "$(board_name)" in
	kd20)
		lan_mac="$(legacy_boot_mac_adr)"
		;;
esac

ucidef_set_interface_lan "eth0" "dhcp"
[ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" "$lan_mac"

board_config_flush

exit 0