summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-02-26 01:36:27 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-02-26 01:36:27 +0000
commitbb17ff995ee61b2667b57da1444dee8f2a5cc047 (patch)
tree02d9108b479b49669445353a5c4298116bf855d3 /etc/inc/config.inc
parent0dd62c8813d811ea5c3dccc1e490d8635527140c (diff)
downloadpfsense-bb17ff995ee61b2667b57da1444dee8f2a5cc047.zip
pfsense-bb17ff995ee61b2667b57da1444dee8f2a5cc047.tar.gz
* global the $noreboot variable
* do not tell the user the firewall will reboot if $noreboot is set.
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc10
1 files changed, 7 insertions, 3 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc
index ce4a617..f34799b 100644
--- a/etc/inc/config.inc
+++ b/etc/inc/config.inc
@@ -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;
OpenPOWER on IntegriCloud