aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/sysinstall/tcpip.c
diff options
context:
space:
mode:
authorMartin Blapp <mbr@FreeBSD.org>2003-02-09 22:04:50 +0000
committerMartin Blapp <mbr@FreeBSD.org>2003-02-09 22:04:50 +0000
commitf288477e4e87a91fc3b09742f611a70017e9e0c8 (patch)
treef4f3d38709f95840ad5ff55308b069b4ad3b3244 /usr.sbin/sysinstall/tcpip.c
parent4d8d31a7b4d186fe49e3c696ea8a1a3d2eedea96 (diff)
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
Notes
Notes: svn path=/head/; revision=110600
Diffstat (limited to 'usr.sbin/sysinstall/tcpip.c')
-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 ffe2e544be34..3a67cf5707f1 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;