summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/interfaces_gre.php
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2017-01-04 18:53:20 -0200
committerRenato Botelho <renato@netgate.com>2017-01-04 18:53:20 -0200
commit414aa3596b25a2ecf98b63d1a774ba7d92b7e76c (patch)
tree25f043cda5e84d389a7c323df56d6d8bc1116d60 /src/usr/local/www/interfaces_gre.php
parentef70380433e2889f5a97ec7ddfa858baa18bb6ac (diff)
downloadpfsense-414aa3596b25a2ecf98b63d1a774ba7d92b7e76c.zip
pfsense-414aa3596b25a2ecf98b63d1a774ba7d92b7e76c.tar.gz
Remove direct calls to /sbin/ifconfig destroy by pfSense_interface_destroy()
Diffstat (limited to 'src/usr/local/www/interfaces_gre.php')
-rw-r--r--src/usr/local/www/interfaces_gre.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces_gre.php b/src/usr/local/www/interfaces_gre.php
index a69edd6..9f2d8c0 100644
--- a/src/usr/local/www/interfaces_gre.php
+++ b/src/usr/local/www/interfaces_gre.php
@@ -57,7 +57,7 @@ if ($_GET['act'] == "del") {
} else if (gre_inuse($_GET['id'])) {
$input_errors[] = gettext("This GRE tunnel cannot be deleted because it is still being used as an interface.");
} else {
- mwexec("/sbin/ifconfig " . $a_gres[$_GET['id']]['greif'] . " destroy");
+ pfSense_interface_destroy($a_gres[$_GET['id']]['greif']);
unset($a_gres[$_GET['id']]);
write_config();
OpenPOWER on IntegriCloud