summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.setlanip
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2010-02-27 15:24:35 -0500
committerChris Buechler <cmb@pfsense.org>2010-02-27 15:24:35 -0500
commita64b5d3f926dd06d764856d2a3b979b3f5f1c980 (patch)
tree050a67499343abf9183c943f84f4f2b3e02918a6 /etc/rc.initial.setlanip
parent7b819cdbb268b106d648904b2f1596b980552f0a (diff)
downloadpfsense-a64b5d3f926dd06d764856d2a3b979b3f5f1c980.zip
pfsense-a64b5d3f926dd06d764856d2a3b979b3f5f1c980.tar.gz
if reverted to HTTP, restart lighty
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-xetc/rc.initial.setlanip8
1 files changed, 7 insertions, 1 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip
index 2a37169..c332d88 100755
--- a/etc/rc.initial.setlanip
+++ b/etc/rc.initial.setlanip
@@ -187,8 +187,10 @@
$good = true;
} while (!$good);
- if ($yn == "y")
+ if ($yn == "y") {
$config['system']['webgui']['protocol'] = "http";
+ $restart_webgui = true;
+ }
}
if (isset($config['system']['webgui']['noantilockout'])) {
@@ -222,6 +224,10 @@
echo " DHCPD...";
services_dhcpd_configure();
}
+ if($restart_webgui) {
+ echo " restarting webConfigurator... ";
+ mwexec("/etc/rc.restart_webgui");
+ }
if ($intip != '') {
if (is_ipaddr($intip)) {
OpenPOWER on IntegriCloud