summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/rc')
-rwxr-xr-xetc/rc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index d06ea7c..db44a7a 100755
--- a/etc/rc
+++ b/etc/rc
@@ -36,9 +36,9 @@ 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`
+hideplatform=`cat /etc/inc/globals.inc | grep hideplatform | wc -l`
-if [ "$hideplatform" = "true" ]; then
+if [ "$hideplatform" -gt "0"]; then
platformbanner="" # hide the platform
else
platformbanner=" on the '${PLATFORM}' platform"
OpenPOWER on IntegriCloud