diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-24 15:30:46 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-24 15:30:46 -0400 |
commit | 3d7639eb28973754a15293476d00c71522ca143c (patch) | |
tree | cb967262229a04f0953c25bde7908b5243171044 /etc/rc.banner | |
parent | aeca0c4e2c84c336f4b47134720edf6e75dec739 (diff) | |
download | pfsense-3d7639eb28973754a15293476d00c71522ca143c.zip pfsense-3d7639eb28973754a15293476d00c71522ca143c.tar.gz |
Add hideplatform directive useful for rebranding
Diffstat (limited to 'etc/rc.banner')
-rwxr-xr-x | etc/rc.banner | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etc/rc.banner b/etc/rc.banner index 1ba8803..d259069 100755 --- a/etc/rc.banner +++ b/etc/rc.banner @@ -38,9 +38,13 @@ $version = trim(file_get_contents("{$g['etc_path']}/version")); $platform = trim(file_get_contents("{$g['etc_path']}/platform")); $hostname = $config['system']['hostname']; - $product = $g['product_name']; + $product = $g['product_name']; + $hideplatform = $g['hideplatform']; - print "\n*** Welcome to {$product} {$version}-{$platform} on {$hostname} ***\n"; + if(!$hideplatform) + $platformbanner = "-{$platform}"; + + print "\n*** Welcome to {$product} {$version}{$platformbanner} on {$hostname} ***\n"; $iflist = get_configured_interface_with_descr(false, true); foreach($iflist as $ifname => $friendly) { |