diff options
author | Warren Baker <warren@decoy.co.za> | 2012-03-02 23:02:22 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2012-03-02 23:02:22 +0200 |
commit | bfe407e5a2184d0cceeb2349eb1408b4f28029eb (patch) | |
tree | 1e8dc53959f486f77b56199b70a7f4ebcdf569ba /etc | |
parent | 3b8a17a1d060482cb2425c62418cd37445762226 (diff) | |
download | pfsense-bfe407e5a2184d0cceeb2349eb1408b4f28029eb.zip pfsense-bfe407e5a2184d0cceeb2349eb1408b4f28029eb.tar.gz |
Add the ability to disable static routes without deleting them
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 5 |
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']; |