diff options
author | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-24 15:33:41 -0400 |
---|---|---|
committer | Scott Ullrich <sullrich@sullrich-MacBookPro.local> | 2009-03-24 15:33:41 -0400 |
commit | 1cb58b793b7e136ce2d2afb51b4ef40bcac8ade6 (patch) | |
tree | 83a84f7d33362282b20a28bf5e515c7d27afc9dd /etc | |
parent | e28d3bb3e3c7d9cba9aa0dfa8e18bada2c0a219b (diff) | |
download | pfsense-1cb58b793b7e136ce2d2afb51b4ef40bcac8ade6.zip pfsense-1cb58b793b7e136ce2d2afb51b4ef40bcac8ade6.tar.gz |
Add hideplatform item which is useful for rebranding
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/globals.inc | 5 | ||||
-rwxr-xr-x | etc/rc | 9 | ||||
-rwxr-xr-x | etc/rc.banner | 8 |
3 files changed, 17 insertions, 5 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc index 6640a05..6754a21 100644 --- a/etc/inc/globals.inc +++ b/etc/inc/globals.inc @@ -36,11 +36,12 @@ $g = array( "factory_shipped_password" => "pfsense", "product_name" => "pfSense", "product_copyright" => "BSD Perimeter LLC", - "product_copyright_url" => "http://www.bsdperimeter.com", + "product_copyright_url" => "http://www.bsdperimeter.com", "product_copyright_years" => "2004 - 2009", "product_website" => "www.pfsense.org", - "product_website_footer" => "http://www.pfsense.org/?gui12", + "product_website_footer" => "http://www.pfsense.org/?gui12", "product_email" => "coreteam@pfsense.org", + "hideplatform" => false, "upload_path" => "/root", "dhcpd_chroot_path" => "/var/dhcpd", "varrun_path" => "/var/run", @@ -36,12 +36,19 @@ if [ "$PLATFORM" = "pfSense" ]; then fi product=`/bin/cat /etc/inc/globals.inc | /usr/bin/grep product_name | /usr/bin/cut -d'"' -f4` +hideplatform=`cat /etc/inc/globals.inc | grep hideplatform | cut -d'"' -f4` + +if [ "$hideplatform" = "true" ]; + platformbanner="" # hide the platform +else + platformbanner=" on the '${PLATFORM}' platform" +fi echo cat /etc/ascii-art/pfsense-logo-small.txt echo echo -echo "Welcome to ${product} ${version} on the '${PLATFORM}' platform..." +echo "Welcome to ${product} ${version}${platformbanner}..." echo # Enable console output if its muted. diff --git a/etc/rc.banner b/etc/rc.banner index f2c3b48..b23f801 100755 --- a/etc/rc.banner +++ b/etc/rc.banner @@ -38,8 +38,12 @@ $platform = trim(file_get_contents("{$g['etc_path']}/platform")); $hostname = $config['system']['hostname']; $product = $g['product_name']; - - print "\n*** Welcome to {$g['product_name']} {$version}-{$platform} on {$hostname} ***\n"; + $hideplatform = $g['hideplatform']; + + if(!$hideplatform) + $platformbanner = "-{$platform}"; + + print "\n*** Welcome to {$g['product_name']} {$version}{$platformbanner} on {$hostname} ***\n"; /* get our initial interface list */ $vfaces = array( |