mxs: convert from uci-defaults to board.d
[openwrt/staging/lynxis.git] / target / linux / arc770 / base-files / etc / uci-defaults / 02_network
1 #!/bin/sh
2 #
3 # Copyright (C) 2015 OpenWrt.org
4 #
5
6 [ -e /etc/config/network ] && exit 0
7
8 touch /etc/config/network
9
10 . /lib/arc.sh
11 . /lib/functions/uci-defaults.sh
12
13 ucidef_set_interface_loopback
14
15 case "$( arc_board_name )" in
16 "arc-sdp"*)
17 ucidef_set_interface_raw "lan" "eth0" "dhcp"
18 ;;
19 esac
20
21 uci commit network
22
23 exit 0