]> git.pld-linux.org Git - projects/rc-scripts.git/commitdiff
dhclient seems to be faster than dhcpcd, so prefer it if both present
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 20:31:19 +0000 (20:31 +0000)
committerElan Ruusamäe <glen@pld-linux.org>
Thu, 30 May 2013 20:31:19 +0000 (20:31 +0000)
svn-id: @12677

lib/functions.network

index 6b03d4b82c2fb94e2227d3262b08e8cb8733d30a..bb7ed5ff4a726c36b99537906ff8e2a12d75ecc9 100644 (file)
@@ -91,10 +91,10 @@ set_dhcpclient()
        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
This page took 0.44001 seconds and 4 git commands to generate.