* global the $noreboot variable

* do not tell the user the firewall will reboot if $noreboot is set.
This commit is contained in:
Scott Ullrich 2005-02-26 01:36:27 +00:00
parent 0dd62c8813
commit bb17ff995e
2 changed files with 8 additions and 3 deletions

View File

@ -553,6 +553,8 @@ function config_unlock() {
}
function set_networking_interfaces_ports() {
global $noreboot;
$fp = fopen('php://stdin', 'r');
$iflist = get_interface_list();
@ -694,9 +696,9 @@ EOD;
echo "OPT" . ($i+1) . " -> " . $optif[$i] . "\n";
}
echo <<<EOD
if(!$noreboot) echo "\npfSense will reboot after saving the changes.\n";
pfSense will reboot after saving the changes.
echo <<<EOD
Do you want to proceed [y|n]?
EOD;
@ -743,9 +745,11 @@ EOD;
write_config();
if(!$noreboot) echo "\npfSense is now rebooting.\n";
echo <<<EOD
pfSense is rebooting now.
EOD;

View File

@ -50,6 +50,7 @@
if($do_assign == 1) {
$noreboot = true;
echo "\n\n\nInterface mistmatch. Running Interface assignment option.\n";
set_networking_interfaces_ports();
}