mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
* global the $noreboot variable
* do not tell the user the firewall will reboot if $noreboot is set.
This commit is contained in:
parent
0dd62c8813
commit
bb17ff995e
@ -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;
|
||||
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
|
||||
if($do_assign == 1) {
|
||||
$noreboot = true;
|
||||
echo "\n\n\nInterface mistmatch. Running Interface assignment option.\n";
|
||||
set_networking_interfaces_ports();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user