summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authormbr <mbr@FreeBSD.org>2003-02-09 22:04:50 +0000
committermbr <mbr@FreeBSD.org>2003-02-09 22:04:50 +0000
commit9d09c03766e235f8a6fc8ed941759a5423058a58 (patch)
treef4f3d38709f95840ad5ff55308b069b4ad3b3244 /usr.sbin
parenta58e49dda04fe39c27c62cdf3e0a5da9f8c28cf4 (diff)
downloadFreeBSD-src-9d09c03766e235f8a6fc8ed941759a5423058a58.zip
FreeBSD-src-9d09c03766e235f8a6fc8ed941759a5423058a58.tar.gz
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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/sysinstall/tcpip.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/sysinstall/tcpip.c b/usr.sbin/sysinstall/tcpip.c
index ffe2e54..3a67cf5 100644
--- a/usr.sbin/sysinstall/tcpip.c
+++ b/usr.sbin/sysinstall/tcpip.c
@@ -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;
OpenPOWER on IntegriCloud