summaryrefslogtreecommitdiffstats
path: root/etc/rc.initial.setlanip
diff options
context:
space:
mode:
authorChris Buechler <cmb@pfsense.org>2008-07-07 22:35:46 +0000
committerChris Buechler <cmb@pfsense.org>2008-07-07 22:35:46 +0000
commitdb747fb17fe1fcd33ae9060ee54fb42615899777 (patch)
treef908fe58b3d70713c65a8d51aff839c50f2f4372 /etc/rc.initial.setlanip
parent4a166751767c9c993dbfa0c6056ad911112bb5e8 (diff)
downloadpfsense-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-xetc/rc.initial.setlanip24
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
OpenPOWER on IntegriCloud