summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-04-02 20:57:21 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-04-02 20:57:21 -0400
commitad22530333c70c03a6c9bef472562a50727a5579 (patch)
treeac07c6fd2bad9575ace5c13951e34546cb6536d9 /etc/rc
parentaebbbb638befd11129296615ec83dfa4b371ea7e (diff)
downloadpfsense-ad22530333c70c03a6c9bef472562a50727a5579.zip
pfsense-ad22530333c70c03a6c9bef472562a50727a5579.tar.gz
Correct check for hideplatform
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