diff options
Diffstat (limited to 'usr/local/www/system_routes.php')
-rwxr-xr-x | usr/local/www/system_routes.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/local/www/system_routes.php b/usr/local/www/system_routes.php index 454e613..84f5de0 100755 --- a/usr/local/www/system_routes.php +++ b/usr/local/www/system_routes.php @@ -59,6 +59,14 @@ if ($_POST) { $retval = 0; + if (file_exists("{$g['tmp_path']}/.system_routes.apply")) { + $toapplylist = unserialize(file_get_contents("{$g['tmp_path']}/.system_routes.apply")); + foreach ($toapplylist as $toapply) + mwexec("{$toapply}"); + + @unlink("{$g['tmp_path']}/.system_routes.apply"); + } + $retval = system_routing_configure(); $retval |= filter_configure(); /* reconfigure our gateway monitor */ @@ -92,7 +100,6 @@ if ($_GET['act'] == "del") { mwexec("/sbin/route delete " . escapeshellarg($a_routes[$_GET['id']]['network'])); unset($a_routes[$_GET['id']]); write_config($changedesc); - mark_subsystem_dirty('staticroutes'); header("Location: system_routes.php"); exit; } |