Trivial patch that makes ifupdown call "ip" as 'ip link set addr ...'
rather than 'ip link set address'. The short version, addr, works with
both busybox ip and its bigger brother.

-nc
Index: networking/ifupdown.c
===================================================================
--- networking/ifupdown.c	(revision 23876)
+++ networking/ifupdown.c	(working copy)
@@ -349,7 +349,7 @@
 	int result;
 #if ENABLE_FEATURE_IFUPDOWN_IP
 	result = execute("ip addr add %address%/%netmask% dev %iface%[[ label %label%]]", ifd, exec);
-	result += execute("ip link set[[ mtu %mtu%]][[ address %hwaddress%]] %iface% up", ifd, exec);
+	result += execute("ip link set[[ mtu %mtu%]][[ addr %hwaddress%]] %iface% up", ifd, exec);
 	/* Was: "[[ ip ....%gateway% ]]". Removed extra spaces w/o checking */
 	result += execute("[[ip route add ::/0 via %gateway%]]", ifd, exec);
 #else
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to