realview: add protocol argument to ucidef_set_interface_raw
authorFlorian Fainelli <florian@openwrt.org>
Thu, 25 Sep 2014 19:09:17 +0000 (19:09 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 25 Sep 2014 19:09:17 +0000 (19:09 +0000)
Now that ucidef_set_interface_raw() has been updated to take a protocol
argument, use that.

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

target/linux/realview/base-files/etc/uci-defaults/02-network

index 76d3f8d33ae81baf6890fe610aa27b4600ec5c05..e90ecbe6b25f491c28f542781942142d3d11eb32 100755 (executable)
@@ -3,8 +3,4 @@
 . /lib/functions/uci-defaults.sh
 
 ucidef_set_interface_loopback
-ucidef_set_interface_raw "lan" "eth0"
-
-uci batch <<EOF
-set network.lan.proto='dhcp'
-EOF
+ucidef_set_interface_raw "lan" "eth0" "dhcp"