summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-24 18:37:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-24 18:37:11 +0000
commit0aba287e27132643f723d837b9e605d79cf298b3 (patch)
treee8cfa3a1a0600df15353b9dff3fda1f32b2d1d06
parent8e0e58ffb7ef793fe9d604744ced593bcd66aae2 (diff)
downloadpfsense-0aba287e27132643f723d837b9e605d79cf298b3.zip
pfsense-0aba287e27132643f723d837b9e605d79cf298b3.tar.gz
Remove IP address when shutting down dhclient
Ticket #229
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index f7c27d9..4945da5 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -633,7 +633,11 @@ EOD;
}
function interfaces_wan_dhcp_down() {
+ global $config;
+ $wancfg = $config['interfaces']['wan'];
+ $wanif = $wancfg['if'];
mwexec("/sbin/dhclient -r");
+ mwexec("/sbin/ifconfig {$wanif} delete");
sleep(3);
}
OpenPOWER on IntegriCloud