SVN: rc-scripts/trunk/lib/functions.network

glen glen at pld-linux.org
Thu May 30 22:31:19 CEST 2013


Author: glen
Date: Thu May 30 22:31:19 2013
New Revision: 12677

Modified:
   rc-scripts/trunk/lib/functions.network
Log:
dhclient seems to be faster than dhcpcd, so prefer it if both present

Modified: rc-scripts/trunk/lib/functions.network
==============================================================================
--- rc-scripts/trunk/lib/functions.network	(original)
+++ rc-scripts/trunk/lib/functions.network	Thu May 30 22:31:19 2013
@@ -91,10 +91,10 @@
 	if [ -z "$DHCP_CLIENT" ]; then
 		if [ "$BOOTPROTO" = "zeroconf" -a -x /usr/sbin/avahi-autoipd ]; then
 			DHCP_CLIENT=/usr/sbin/avahi-autoipd
-		elif [ -x /sbin/dhcpcd ]; then
-			DHCP_CLIENT=/sbin/dhcpcd
 		elif [ -x /sbin/dhclient ]; then
 			DHCP_CLIENT=/sbin/dhclient
+		elif [ -x /sbin/dhcpcd ]; then
+			DHCP_CLIENT=/sbin/dhcpcd
 		elif [ -x /sbin/dhcpxd ]; then
 			DHCP_CLIENT=/sbin/dhcpxd
 		elif [ -x /sbin/pump ]; then


More information about the pld-cvs-commit mailing list