Add hideplatform item which is useful for rebranding

This commit is contained in:
Scott Ullrich 2009-03-24 15:33:41 -04:00
parent e28d3bb3e3
commit 1cb58b793b
3 changed files with 17 additions and 5 deletions

View File

@ -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",

9
etc/rc
View File

@ -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.

View File

@ -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(