summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0000000..76d3f8d
--- /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