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:
parent
bd738d630c
commit
32ca8e078d
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user