diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-12-30 20:32:51 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-12-30 20:32:51 +0000 |
commit | a2cb1b3ff108ad1782f09c495447a8ed63b173cf (patch) | |
tree | 356528a6c032561f8028e1020e57adbc86e646cc /etc/rc.banner | |
parent | b14672f49d2fae77d06f4d6aec978cf83e155799 (diff) | |
download | pfsense-a2cb1b3ff108ad1782f09c495447a8ed63b173cf.zip pfsense-a2cb1b3ff108ad1782f09c495447a8ed63b173cf.tar.gz |
MFC
Ticket #762
Diffstat (limited to 'etc/rc.banner')
-rwxr-xr-x | etc/rc.banner | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/etc/rc.banner b/etc/rc.banner index 7017f51..a11208a 100755 --- a/etc/rc.banner +++ b/etc/rc.banner @@ -36,11 +36,23 @@ $version = trim(file_get_contents("{$g['etc_path']}/version")); $platform = trim(file_get_contents("{$g['etc_path']}/platform")); + $hostname = $config['system']['hostname']; - print "\n*** Welcome to pfSense version {$version} - {$platform} ***\n"; + print "\n*** Welcome to pfSense {$version}-{$platform} on {$hostname} ***\n"; /* get our initial interface list */ - $iflist = get_interface_list("media"); + $vfaces = array( + 'ppp', + 'sl', + 'gif', + 'faith', + 'lo', + 'tun', + 'pflog', + 'pfsync', + 'carp' + ); + $iflist = get_interface_list("media", "physical", $vfaces); foreach($iflist as $ifname => $ifinfo) { /* skip interfaces that don't have a friendly name */ @@ -55,11 +67,11 @@ break; case "pppoe": $ifinfo['class'] = "(PPPoE)"; - $ifinfo['ipaddr'] = get_current_wan_address(); + $ifinfo['ipaddr'] = $iflist[$g['pppoe_interface']]['ipaddr']; break; case "pptp": $ifinfo['class'] = "(PPTP)"; - $ifinfo['ipaddr'] = get_current_wan_address(); + $ifinfo['ipaddr'] = $iflist[$g['pppoe_interface']]['ipaddr']; break; } $tobanner = $friendly; @@ -79,4 +91,4 @@ ); } } -?>
\ No newline at end of file +?> |