summaryrefslogtreecommitdiffstats
path: root/etc/inc/interfaces.inc
diff options
context:
space:
mode:
authorErmal Luçi <eri@pfsense.org>2008-04-10 16:43:16 +0000
committerErmal Luçi <eri@pfsense.org>2008-04-10 16:43:16 +0000
commitfb8a9b2f1b20df8473510852887b726504a458e7 (patch)
treec6e191bb74126cd94d837a9bd08e803ca05086b0 /etc/inc/interfaces.inc
parent172c6dd7d5da305382dc49c7a27b373504974662 (diff)
downloadpfsense-fb8a9b2f1b20df8473510852887b726504a458e7.zip
pfsense-fb8a9b2f1b20df8473510852887b726504a458e7.tar.gz
Destroy the interface propperly to not have problems when recreating them.
Diffstat (limited to 'etc/inc/interfaces.inc')
-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 cfd9f4e..a681e8b 100644
--- a/etc/inc/interfaces.inc
+++ b/etc/inc/interfaces.inc
@@ -59,7 +59,7 @@ function interfaces_vlan_configure() {
/* sweep through and axe old interfaces */
$vlan_count = get_number_of_vlan_interfaces();
for($x=0; $x<$vlan_count; $x++)
- exec("/sbin/ifconfig vlan{$x} down delete");
+ exec("/sbin/ifconfig vlan{$x} down destroy");
$i = 0;
@@ -1819,4 +1819,4 @@ function get_interface_mac($interface) {
return $mac;
}
-?> \ No newline at end of file
+?>
OpenPOWER on IntegriCloud