summaryrefslogtreecommitdiffstats
path: root/etc
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
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')
-rw-r--r--etc/inc/config.inc10
-rwxr-xr-xetc/rc.bootup1
2 files changed, 8 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;
diff --git a/etc/rc.bootup b/etc/rc.bootup
index 9285d0e..9df3f0b 100755
--- a/etc/rc.bootup
+++ b/etc/rc.bootup
@@ -50,6 +50,7 @@
if($do_assign == 1) {
$noreboot = true;
+ echo "\n\n\nInterface mistmatch. Running Interface assignment option.\n";
set_networking_interfaces_ports();
}
OpenPOWER on IntegriCloud