summaryrefslogtreecommitdiffstats
path: root/src/etc/rc.banner
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-05-03 17:09:01 -0300
committerRenato Botelho <renato@netgate.com>2016-05-03 17:09:14 -0300
commit5a0235caa1600f4ea9601edcbfedab48b837174e (patch)
tree2f328596e34cc51df114aeba7052f17713fb4ac0 /src/etc/rc.banner
parentf91d05dd647b32dbfdd3b9508a441e5fbea9effc (diff)
downloadpfsense-5a0235caa1600f4ea9601edcbfedab48b837174e.zip
pfsense-5a0235caa1600f4ea9601edcbfedab48b837174e.tar.gz
Show patchlevel together with product version on banners and system information widget
Diffstat (limited to 'src/etc/rc.banner')
-rwxr-xr-xsrc/etc/rc.banner10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/etc/rc.banner b/src/etc/rc.banner
index 6204d29..fbd4ba0 100755
--- a/src/etc/rc.banner
+++ b/src/etc/rc.banner
@@ -34,17 +34,21 @@
require_once("gwlb.inc");
require_once("interfaces.inc");
- $platform = trim(file_get_contents("{$g['etc_path']}/platform"));
$hostname = $config['system']['hostname'];
$product = $g['product_name'];
$machine = trim(`uname -m`);
$hideplatform = $g['hideplatform'];
if (!$hideplatform) {
- $platformbanner = "-{$platform}";
+ if ($g['platform'] == $g['product_name']) {
+ $platform = "full-install";
+ } else {
+ $platform = $g['platform'];
+ }
+ $platformbanner = " {$platform}";
}
- print "*** Welcome to {$product} {$g['product_version']}{$platformbanner} ({$machine}) on {$hostname} ***\n";
+ print "*** Welcome to {$product} {$g['product_version_string']} ({$machine}{$platformbanner}) on {$hostname} ***\n";
$iflist = get_configured_interface_with_descr(false, true);
foreach ($iflist as $ifname => $friendly) {
OpenPOWER on IntegriCloud