mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-25 08:02:32 +00:00
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
This commit is contained in:
parent
8f4167ccbf
commit
f68f14cc30
10
target/linux/realview/base-files/etc/uci-defaults/02-network
Executable file
10
target/linux/realview/base-files/etc/uci-defaults/02-network
Executable file
@ -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
|
Loading…
Reference in New Issue
Block a user