From 276a350f686140dc4078ab5af177cbfc0bfc4102 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 22 Jan 2008 21:31:41 +0000 Subject: [PATCH] When changing the IP address, reassign all static routes. Tested-by: Gary Buckmaster via ORU --- usr/local/www/interfaces.php | 7 ++++++- usr/local/www/interfaces_lan.php | 3 +++ usr/local/www/interfaces_opt.php | 4 ++++ usr/local/www/interfaces_wan.php | 7 ++++++- 4 files changed, 19 insertions(+), 2 deletions(-) diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index fe065f5c29..7ad43a4b8d 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -510,6 +510,7 @@ if ($_POST) { config_unlock(); } + $retval = 0; $savemsg = get_std_save_message($retval); @@ -1035,7 +1036,11 @@ if ($_POST) { /* sync filter configuration */ filter_configure(); + + /* set up static routes */ + system_routing_configure(); + } } -?> +?> \ No newline at end of file diff --git a/usr/local/www/interfaces_lan.php b/usr/local/www/interfaces_lan.php index 83c6ff9e81..7f71ec6309 100755 --- a/usr/local/www/interfaces_lan.php +++ b/usr/local/www/interfaces_lan.php @@ -268,6 +268,9 @@ if ($_POST['apply'] <> "") { /* sync filter configuration */ filter_configure(); + + /* set up static routes */ + system_routing_configure(); if(file_exists($d_landirty_path)) unlink($d_landirty_path); diff --git a/usr/local/www/interfaces_opt.php b/usr/local/www/interfaces_opt.php index ac22c64267..e33127951c 100755 --- a/usr/local/www/interfaces_opt.php +++ b/usr/local/www/interfaces_opt.php @@ -460,6 +460,10 @@ if ($_POST) { /* sync filter configuration */ filter_configure(); + + /* set up static routes */ + system_routing_configure(); + } } ?> \ No newline at end of file diff --git a/usr/local/www/interfaces_wan.php b/usr/local/www/interfaces_wan.php index fe065f5c29..7ad43a4b8d 100755 --- a/usr/local/www/interfaces_wan.php +++ b/usr/local/www/interfaces_wan.php @@ -510,6 +510,7 @@ if ($_POST) { config_unlock(); } + $retval = 0; $savemsg = get_std_save_message($retval); @@ -1035,7 +1036,11 @@ if ($_POST) { /* sync filter configuration */ filter_configure(); + + /* set up static routes */ + system_routing_configure(); + } } -?> +?> \ No newline at end of file