diff options
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 +?> |