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
This commit is contained in:
Dag-Erling Smørgrav 2011-10-17 13:05:57 +00:00
parent bd738d630c
commit 32ca8e078d

View File

@ -41,7 +41,7 @@ if [ -z $ifn ] ; then
echo 1>&2 "$0: no interface specified" echo 1>&2 "$0: no interface specified"
return 1 return 1
fi fi
elif [ -n "${rc_force}" ] && ! dhcpif $ifn; then elif [ -z "${rc_force}" ] && ! dhcpif $ifn; then
return 1 return 1
fi fi