summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-10-29 16:51:23 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-10-29 16:51:23 +0000
commita438eb98ff344dcbd8451132c3a431db2c3f6c88 (patch)
treef73c7a4509873f61ce303877a833cc91cdf94a7a /etc
parent2bda651ba7ce9c3c0e8505bdbe9370c8bcc2d2dc (diff)
downloadpfsense-a438eb98ff344dcbd8451132c3a431db2c3f6c88.zip
pfsense-a438eb98ff344dcbd8451132c3a431db2c3f6c88.tar.gz
Resolve interface ip's in the console instead of showing DHCP
Ticket #652
Diffstat (limited to 'etc')
-rwxr-xr-xetc/rc.banner17
1 files changed, 12 insertions, 5 deletions
diff --git a/etc/rc.banner b/etc/rc.banner
index f987665..7c1bd78 100755
--- a/etc/rc.banner
+++ b/etc/rc.banner
@@ -41,15 +41,22 @@
$buildtime = chop(file_get_contents("{$g['etc_path']}/version.buildtime"));
$platform = chop(file_get_contents("{$g['etc_path']}/platform"));
+ $lanip = find_interface_ip($config['interfaces']['lan']['if']);
+ $wanip = find_interface_ip($config['interfaces']['wan']['if']);
+
echo <<<EOD
*** This is pfSense version {$version} - {$platform} ***
- LAN -> {$config['interfaces']['lan']['if']} -> {$config['interfaces']['lan']['ipaddr']}
- WAN -> {$config['interfaces']['wan']['if']} -> {$config['interfaces']['wan']['ipaddr']}
+ LAN -> {$config['interfaces']['lan']['if']} -> {$lanip}
+ WAN -> {$config['interfaces']['wan']['if']} -> {$wanip}
EOD;
- for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++)
- echo "\n OPT{$i} -> {$config['interfaces']['opt' . $i]['if']} -> " . $config['interfaces']['opt' . $i]['ipaddr'] .
- "({$config['interfaces']['opt' . $i]['descr']})";
+ for ($i = 1; isset($config['interfaces']['opt' . $i]); $i++) {
+ $ipaddr = find_interface_ip($config['interfaces']['opt' . $i]['if']);
+ echo "\n OPT{$i} -> {$config['interfaces']['opt' . $i]['if']} -> ";
+ echo $ipaddr;
+ echo " ({$config['interfaces']['opt' . $i]['descr']})";
+ }
+
?> \ No newline at end of file
OpenPOWER on IntegriCloud