summaryrefslogtreecommitdiffstats
path: root/etc/inc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2012-03-02 23:02:22 +0200
committerWarren Baker <warren@decoy.co.za>2012-03-02 23:02:22 +0200
commitbfe407e5a2184d0cceeb2349eb1408b4f28029eb (patch)
tree1e8dc53959f486f77b56199b70a7f4ebcdf569ba /etc/inc
parent3b8a17a1d060482cb2425c62418cd37445762226 (diff)
downloadpfsense-bfe407e5a2184d0cceeb2349eb1408b4f28029eb.zip
pfsense-bfe407e5a2184d0cceeb2349eb1408b4f28029eb.tar.gz
Add the ability to disable static routes without deleting them
Diffstat (limited to 'etc/inc')
-rw-r--r--etc/inc/system.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index ef14c9c..f01d674 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -440,6 +440,11 @@ function system_routing_configure($interface = "") {
if (!empty($interface) && $interface != $gateway['friendlyiface'])
continue;
+ if(isset($rtent['disabled'])) {
+ mwexec("/sbin/route delete " . escapeshellarg($rtent['network']), true);
+ continue;
+ }
+
$gatewayip = $gateway['gateway'];
$interfacegw = $gateway['interface'];
OpenPOWER on IntegriCloud