summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2014-07-03 17:19:10 +0000
committerFlorian Fainelli <florian@openwrt.org>2014-07-03 17:19:10 +0000
commitf68f14cc30fcdf07551b1d89628f198f07fc0264 (patch)
tree9e81fb32bf3f6f54427308416937598ce7ff5dbd
parent8f4167ccbf31f2c356c8e12b927fbea466082e83 (diff)
downloadmtk-20170518-f68f14cc30fcdf07551b1d89628f198f07fc0264.zip
mtk-20170518-f68f14cc30fcdf07551b1d89628f198f07fc0264.tar.gz
mtk-20170518-f68f14cc30fcdf07551b1d89628f198f07fc0264.tar.bz2
realview: set LAN interface to be in DHCP
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
-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