Commit 1370b96d authored by Franco Fichtner's avatar Franco Fichtner

wizard: improve WAN/LAN setup

Not sure why "Static" should be special.  Skipping over LAN setup
is ok, skipping over admin password change is NOT.
parent 904029d1
...@@ -477,14 +477,11 @@ ...@@ -477,14 +477,11 @@
</stepsubmitphpaction> </stepsubmitphpaction>
<stepsubmitbeforesave> <stepsubmitbeforesave>
<![CDATA[ <![CDATA[
if($_POST['selectedtype'] == "Static") { $_POST['ipaddress'] = $_POST['selectedtype'];
$config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype'];
} else { write_config();
$_POST['ipaddress'] = $_POST['selectedtype']; if (!isset($config['interfaces']['lan'])) {
$config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype']; header("Location: /wizard.php?xml=setup&stepid=5");
write_config();
if(!$config['interfaces']['lan'])
header("Location: /wizard.php?xml=setup&stepid=6&next=Next");
} }
]]> ]]>
</stepsubmitbeforesave> </stepsubmitbeforesave>
......
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