summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/inc/globals.inc5
-rwxr-xr-xetc/rc9
-rwxr-xr-xetc/rc.banner8
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",
diff --git a/etc/rc b/etc/rc
index 925788e..de970ff 100755
--- a/etc/rc
+++ b/etc/rc
@@ -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(
OpenPOWER on IntegriCloud