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 @@
</stepsubmitphpaction>
<stepsubmitbeforesave>
<![CDATA[
if($_POST['selectedtype'] == "Static") {
} else {
$_POST['ipaddress'] = $_POST['selectedtype'];
$config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype'];
write_config();
if(!$config['interfaces']['lan'])
header("Location: /wizard.php?xml=setup&stepid=6&next=Next");
if (!isset($config['interfaces']['lan'])) {
header("Location: /wizard.php?xml=setup&stepid=5");
}
]]>
</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