diff options
author | sullrich <sullrich@pfsense.org> | 2009-11-27 16:32:59 -0500 |
---|---|---|
committer | sullrich <sullrich@pfsense.org> | 2009-11-27 16:32:59 -0500 |
commit | fa6a664d8a8734a78c5f235bb629319578a9a7b6 (patch) | |
tree | ed470adeff499548138403760457bee65bcbd44d /usr | |
parent | 64fba8ec93fa47d284483e6da6a1989d6dd46ce6 (diff) | |
download | pfsense-fa6a664d8a8734a78c5f235bb629319578a9a7b6.zip pfsense-fa6a664d8a8734a78c5f235bb629319578a9a7b6.tar.gz |
When working with one interface only, do not attempt to setup lan during setup wizard. Ticket #158
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/www/wizards/setup_wizard.xml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr/local/www/wizards/setup_wizard.xml b/usr/local/www/wizards/setup_wizard.xml index 3f5c3de..0a60bdb 100644 --- a/usr/local/www/wizards/setup_wizard.xml +++ b/usr/local/www/wizards/setup_wizard.xml @@ -323,11 +323,17 @@ </field> </fields> <stepsubmitbeforesave> - if($_POST['selectedtype'] == "Static") { } else { - $_POST['ipaddress'] = $_POST['selectedtype']; - $config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype']; - write_config(); - } + <![CDATA[ + if($_POST['selectedtype'] == "Static") { + + } else { + $_POST['ipaddress'] = $_POST['selectedtype']; + $config['interfaces']['wan']['ipaddr'] = $_POST['selectedtype']; + write_config(); + if(!$config['interfaces']['lan']) + Header("/wizard.php?xml=setup_wizard.xml&stepid=5&next=Next"); + } + ]]> </stepsubmitbeforesave> </step> <step> |