svn commit: r226464 - head/etc/rc.d
Dag-Erling Smorgrav
des at FreeBSD.org
Mon Oct 17 13:05:58 UTC 2011
Author: des
Date: Mon Oct 17 13:05:57 2011
New Revision: 226464
URL: http://svn.freebsd.org/changeset/base/226464
Log:
The rc_force test was inverted in the previous commit, so that dhclient ran
for interfaces which were not configured for DHCP *unless* rc_force was set;
the correct logic is to run dhclient for those interfaces *only if* rc_force
is set.
Broken by: des@
Noticed by: everybody and his dog
Submitted by: rea@
PR: bin/161733
Modified:
head/etc/rc.d/dhclient
Modified: head/etc/rc.d/dhclient
==============================================================================
--- head/etc/rc.d/dhclient Mon Oct 17 12:22:09 2011 (r226463)
+++ head/etc/rc.d/dhclient Mon Oct 17 13:05:57 2011 (r226464)
@@ -41,7 +41,7 @@ if [ -z $ifn ] ; then
echo 1>&2 "$0: no interface specified"
return 1
fi
-elif [ -n "${rc_force}" ] && ! dhcpif $ifn; then
+elif [ -z "${rc_force}" ] && ! dhcpif $ifn; then
return 1
fi
More information about the svn-src-all
mailing list