diff options
author | Chris Buechler <cmb@pfsense.org> | 2008-07-07 22:35:46 +0000 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2008-07-07 22:35:46 +0000 |
commit | db747fb17fe1fcd33ae9060ee54fb42615899777 (patch) | |
tree | f908fe58b3d70713c65a8d51aff839c50f2f4372 /etc/rc.initial.setlanip | |
parent | 4a166751767c9c993dbfa0c6056ad911112bb5e8 (diff) | |
download | pfsense-db747fb17fe1fcd33ae9060ee54fb42615899777.zip pfsense-db747fb17fe1fcd33ae9060ee54fb42615899777.tar.gz |
clean up text a bit, still some issues remaining (like "http://DHCP", my logic is apparently flawed)
Diffstat (limited to 'etc/rc.initial.setlanip')
-rwxr-xr-x | etc/rc.initial.setlanip | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/etc/rc.initial.setlanip b/etc/rc.initial.setlanip index d1ad242..37bb4eb 100755 --- a/etc/rc.initial.setlanip +++ b/etc/rc.initial.setlanip @@ -209,13 +209,23 @@ filter_configure_sync(); echo "\n"; - if ($intip != '') { - echo "\n\n" . gettext("The IPv4 {$interface} address has been set to ") . "{$intip}/{$intbits}\n" ; - echo gettext('You can now access the webConfigurator by opening the following URL in your web browser:') . "\n"; - if(!empty($config['system']['webgui']['port'])) { - $webuiport = $config['system']['webgui']['port']; + if ($intip != '') { + if (is_ipaddr($intip)) { + echo "\n\n" . gettext("The IPv4 {$upperifname} address has been set to ") . "{$intip}/{$intbits}\n"; + } else { + echo "\n\n" . gettext("The IPv4 {$upperifname} address has been set to ") . "{$intip}\n"; + } + if (count($ifdescrs) == "1" or $interface = "lan") { + echo "ifdescrs count is count($ifdescrs)\n"; + echo "interface is $interface \n"; + echo gettext('You can now access the webConfigurator by opening the following URL in your web browser:') . "\n"; + if(!empty($config['system']['webgui']['port'])) { + $webuiport = $config['system']['webgui']['port']; + echo " {$config['system']['webgui']['protocol']}://{$intip}:{$port}/\n"; + } else { + echo " {$config['system']['webgui']['protocol']}://{$intip}/\n"; + } } - echo " {$config['system']['webgui']['protocol']}://{$intip}:{$port}/\n"; } echo "\n" . gettext('Press <ENTER> to continue.'); @@ -223,4 +233,4 @@ fgets($fp); fclose($fp); -?> +?>
\ No newline at end of file |