Explicitly release a existing lease before we start dhclient (again).

If we already have a lease and restart sysinstall (or something with
the net configuration goes wrong), we would have to reboot just
because there is a dhclient hanging around.

Reviewed by:	murray (re)
MFC after:	5 days
This commit is contained in:
Martin Blapp 2003-02-09 22:04:50 +00:00
parent 4d8d31a7b4
commit f288477e4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=110600

View File

@ -406,6 +406,7 @@ tcpOpenDialog(Device *devp)
Mkdir("/var/run");
Mkdir("/tmp");
msgNotify("Scanning for DHCP servers...");
vsystem("dhclient -r %s", devp->name);
if (0 == vsystem("dhclient -1 %s", devp->name)) {
dhcpGetInfo(devp);
use_dhcp = TRUE;