diff options
author | des <des@FreeBSD.org> | 2011-10-17 13:05:57 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2011-10-17 13:05:57 +0000 |
commit | 505a4146dc10e53888ad4248c24cab53673f3d62 (patch) | |
tree | 52c6aa8e659af03a6c3b92e0db11c7ecf814095b /etc | |
parent | ed683cf8c092fc83ec193651a4e1914f6610f85e (diff) | |
download | FreeBSD-src-505a4146dc10e53888ad4248c24cab53673f3d62.zip FreeBSD-src-505a4146dc10e53888ad4248c24cab53673f3d62.tar.gz |
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
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc.d/dhclient | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/rc.d/dhclient b/etc/rc.d/dhclient index 8faf0ec..f842e12 100755 --- a/etc/rc.d/dhclient +++ b/etc/rc.d/dhclient @@ -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 |