mirror of
https://git.FreeBSD.org/src.git
synced 2025-02-09 02:26:27 +00:00
Release a previous lease if there is any, instead of
just killing dhclient. Needed my some broken dhcpd implementations to be able to get a lease again.
This commit is contained in:
parent
db38f9cb0e
commit
516b220f3e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120097
@ -65,7 +65,7 @@ stop_dhcp() {
|
|||||||
else
|
else
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
kill `cat ${pidfile}`
|
/sbin/dhclient -r ${interface}
|
||||||
rm -f ${pidfile}
|
rm -f ${pidfile}
|
||||||
case ${startstop} in
|
case ${startstop} in
|
||||||
[Ss][Tt][Oo][Pp])
|
[Ss][Tt][Oo][Pp])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user