diff options
Diffstat (limited to 'target/linux/arc770/base-files/etc/uci-defaults')
-rw-r--r-- | target/linux/arc770/base-files/etc/uci-defaults/02_network | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/target/linux/arc770/base-files/etc/uci-defaults/02_network b/target/linux/arc770/base-files/etc/uci-defaults/02_network new file mode 100644 index 0000000000..87cfe81db5 --- /dev/null +++ b/target/linux/arc770/base-files/etc/uci-defaults/02_network @@ -0,0 +1,23 @@ +#!/bin/sh +# +# Copyright (C) 2015 OpenWrt.org +# + +[ -e /etc/config/network ] && exit 0 + +touch /etc/config/network + +. /lib/arc.sh +. /lib/functions/uci-defaults.sh + +ucidef_set_interface_loopback + +case "$( arc_board_name )" in +"arc-sdp"*) + ucidef_set_interface_raw "lan" "eth0" "dhcp" + ;; +esac + +uci commit network + +exit 0 |