realview: set LAN interface to be in DHCP
authorFlorian Fainelli <florian@openwrt.org>
Thu, 3 Jul 2014 17:19:10 +0000 (17:19 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 3 Jul 2014 17:19:10 +0000 (17:19 +0000)
Realview is mostly used as a QEMU development platform, which will provide a
built-in DHCP server to NAT or bridge the connection outside of the emulated
environment.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 41495

target/linux/realview/base-files/etc/uci-defaults/02-network [new file with mode: 0755]

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 (executable)
index 0000000..76d3f8d
--- /dev/null
@@ -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