Commit 8f2449cb authored by Ad Schellevis's avatar Ad Schellevis

fix config issue in initial setup wizard

parent 0dccde43
...@@ -756,10 +756,10 @@ function reload_all_sync() { ...@@ -756,10 +756,10 @@ function reload_all_sync() {
mwexec("/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd"); mwexec("/usr/sbin/pwd_mkdb -d /etc/ /etc/master.passwd");
/* restart sshd */ /* restart sshd */
send_event("service restart sshd"); mwexec('/usr/local/etc/rc.sshd');
/* restart webConfigurator if needed */ /* restart webConfigurator if needed */
send_event("service restart webgui"); mwexec('/usr/local/etc/rc.restart_webgui');
} }
function setup_serial_port($when = 'save', $path = '') function setup_serial_port($when = 'save', $path = '')
......
...@@ -37,6 +37,5 @@ require_once("captiveportal.inc"); ...@@ -37,6 +37,5 @@ require_once("captiveportal.inc");
log_error("rc.reload_all: Reloading all configuration settings."); log_error("rc.reload_all: Reloading all configuration settings.");
reload_all_sync(); reload_all_sync();
sleep(2);
log_error("rc.reload_all: Reloading filter configuration."); log_error("rc.reload_all: Reloading filter configuration.");
filter_configure_sync(); filter_configure_sync();
...@@ -571,16 +571,6 @@ ...@@ -571,16 +571,6 @@
<type>submit</type> <type>submit</type>
</field> </field>
</fields> </fields>
</step>
<step>
<id>8</id>
<title>Reload in progress</title>
<description>
A reload is now in progress. Please wait. &lt;p&gt;
&lt;meta http-equiv="refresh" content="5; url=wizard.php?xml=setup_wizard.xml&amp;stepid=8" &gt;
&lt;p&gt;
The wizard will redirect to the next step once the reload is completed.
</description>
<stepafterformdisplay> <stepafterformdisplay>
<![CDATA[ <![CDATA[
$config['system']['hostname'] = $config['wizardtemp']['system']['hostname']; $config['system']['hostname'] = $config['wizardtemp']['system']['hostname'];
...@@ -615,8 +605,21 @@ ...@@ -615,8 +605,21 @@
} }
unset($config['wizardtemp']); unset($config['wizardtemp']);
write_config(); write_config();
]]>
</stepafterformdisplay>
</step>
<step>
<id>8</id>
<title>Reload in progress</title>
<description>
A reload is now in progress. Please wait. &lt;p&gt;
&lt;meta http-equiv="refresh" content="5; url=wizard.php?xml=setup_wizard.xml&amp;stepid=8" &gt;
&lt;p&gt;
The wizard will redirect to the next step once the reload is completed.
</description>
<stepafterformdisplay>
<![CDATA[
reload_all(); reload_all();
mwexec_bg("/usr/local/etc/rc.update_bogons now");
]]> ]]>
</stepafterformdisplay> </stepafterformdisplay>
</step> </step>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment