diff options
author | Florian Fainelli <florian@openwrt.org> | 2014-07-03 17:19:10 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2014-07-03 17:19:10 +0000 |
commit | f1961ea6ec725dfbbc07abf8489ef28781d8b92a (patch) | |
tree | 52c8255b0ea1ba2ffaee61ce6607f230e2d6b7af | |
parent | 051287907aa1daf2b81c5f354bfa6eec9dfa54d6 (diff) | |
download | upstream-f1961ea6ec725dfbbc07abf8489ef28781d8b92a.tar.gz upstream-f1961ea6ec725dfbbc07abf8489ef28781d8b92a.tar.bz2 upstream-f1961ea6ec725dfbbc07abf8489ef28781d8b92a.zip |
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41495 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | target/linux/realview/base-files/etc/uci-defaults/02-network | 10 |
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 |