summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-10-19 13:29:04 +0000
committerErmal Luçi <eri@pfsense.org>2008-10-19 13:29:04 +0000
commitd8acd7062457e19bd5c77333a3cc8141324892af (patch)
tree8877315ba40fb2d011f62e6b7fb77aea099885a5 /etc
parent80bf3f4aace8a21a1ba307afd6db2c702b2ffc7a (diff)
downloadpfsense-d8acd7062457e19bd5c77333a3cc8141324892af.zip
pfsense-d8acd7062457e19bd5c77333a3cc8141324892af.tar.gz
Slightly change order of commands for dhcp.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/interfaces.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc
index bc53069..181cd9d 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -550,11 +550,11 @@ function interface_bring_down($interface = "wan")
* other interfaces!
*/
case "dhcp":
- mwexec("/sbin/ifconfig {$realinterface} down");
- sleep(1);
$pid = find_dhclient_process($interface);
if($pid)
mwexec("kill {$pid}");
+ sleep(1);
+ mwexec("/sbin/ifconfig {$realinterface} delete down");
break;
default:
mwexec("/sbin/ifconfig " . escapeshellarg($realif) . " delete down");
OpenPOWER on IntegriCloud