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:
mbr 2003-02-09 22:04:50 +00:00
parent a58e49dda0
commit 9d09c03766

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;