aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realview
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/realview')
-rwxr-xr-xtarget/linux/realview/base-files/etc/uci-defaults/02-network10
1 files changed, 10 insertions, 0 deletions
diff --git a/target/linux/realview/base-files/etc/uci-defaults/02-network b/target/linux/realview/base-files/etc/uci-defaults/02-network
new file mode 100755
index 0000000000..76d3f8d33a
--- /dev/null
+++ b/target/linux/realview/base-files/etc/uci-defaults/02-network
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+. /lib/functions/uci-defaults.sh
+
+ucidef_set_interface_loopback
+ucidef_set_interface_raw "lan" "eth0"
+
+uci batch <<EOF
+set network.lan.proto='dhcp'
+EOF