d4010e8b3a64aef884fe762f797bcf72b8d1b23d
[openwrt/staging/wigyori.git] / target / linux / oxnas / base-files / etc / board.d / 02_network
1 #!/bin/sh
2
3 . /lib/functions/uci-defaults.sh
4 . /lib/functions/system.sh
5 . /lib/oxnas.sh
6
7 board_config_update
8
9 lan_mac=""
10
11 case "$(oxnas_board_name)" in
12 kd20)
13 lan_mac="$(legacy_boot_mac_adr)"
14 ;;
15 esac
16
17 ucidef_set_interface_lan "eth0" "dhcp"
18 [ -n "$lan_mac" ] && ucidef_set_interface_macaddr lan "$lan_mac"
19
20 board_config_flush
21
22 exit 0