[BusyBox-cvs] CVS update of busybox/networking (ifupdown.c)

Erik Andersen andersen at codepoet.org
Mon Jul 26 12:05:45 UTC 2004


    Date: Monday, July 26, 2004 @ 06:05:45
  Author: andersen
    Path: /var/cvs/busybox/networking

Modified: ifupdown.c (1.45 -> 1.46)

Make certain that udhcp shuts down the interface


Index: busybox/networking/ifupdown.c
diff -u busybox/networking/ifupdown.c:1.45 busybox/networking/ifupdown.c:1.46
--- busybox/networking/ifupdown.c:1.45	Mon Jul 26 05:46:50 2004
+++ busybox/networking/ifupdown.c	Mon Jul 26 06:05:44 2004
@@ -565,7 +565,7 @@
 	int result = 0;
 	if (execable("/sbin/udhcpc")) {
 		execute("kill -USR2 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
-		execute("kill -9 `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
+		execute("kill -TERM `cat /var/run/udhcpc.%iface%.pid` 2>/dev/null", ifd, exec);
 	} else if (execable("/sbin/pump")) {
 		result = execute("pump -i %iface% -k", ifd, exec);
 	} else if (execable("/sbin/dhclient")) {
@@ -573,7 +573,6 @@
 	} else if (execable("/sbin/dhcpcd")) {
 		result = execute("dhcpcd -k %iface%", ifd, exec);
 	}
-	static_down(ifd, exec);
 	return (result || bootp_down(ifd, exec));
 }
 



More information about the busybox-cvs mailing list