[BusyBox] ifupdown patch
Eric Spakman
E.Spakman at inter.nl.net
Mon Apr 12 17:43:46 UTC 2004
Hello list,
This patch is sended to the list some time ago by Lars Kellogg-
Stedman, but I think it's forgotten. It will correct the case where
'ifdown' will attempt to run 'ifconfig' even if built with
CONFIG_FEATURE_IFUPDOWN_IP.
Regards,
Eric Spakman
--- busybox-1.00-pre8.old/networking/ifupdown.c 2003-12-19
11:46:00.000000000 +0100
+++ busybox-1.00-pre8/networking/ifupdown.c 2004-04-12
19:36:25.000000000 +0200
@@ -557,7 +557,12 @@
} else if (execable("/sbin/dhcpcd")) {
result = execute("dhcpcd -k %iface%", ifd, exec);
}
+#ifdef CONFIG_FEATURE_IFUPDOWN_IP
+ return (result || execute("ip link set %iface% down", ifd,
exec));
+#else
return (result || execute("ifconfig %iface% down", ifd,
exec));
+#endif
+
}
static int bootp_up(struct interface_defn_t *ifd, execfn *exec)
More information about the busybox
mailing list