summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-04-02 20:58:01 -0400
committerScott Ullrich <sullrich@sullrich-MacBookPro.local>2009-04-02 20:58:01 -0400
commit6fafc69f9c8b23c9508ec38100da7f9a298c5388 (patch)
treeac649ff7dae8eb1a7538b84fa7e2c90c0040a2f7 /etc/rc
parent8ff2395b262b551dfea46e792057a1c8d5c88046 (diff)
downloadpfsense-6fafc69f9c8b23c9508ec38100da7f9a298c5388.zip
pfsense-6fafc69f9c8b23c9508ec38100da7f9a298c5388.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 4851fab..99e8654 100755
--- a/etc/rc
+++ b/etc/rc
@@ -38,9 +38,9 @@ if [ "$PLATFORM" = "pfSense" ]; then
fi
product=`cat /etc/inc/globals.inc | grep product_name | cut -d'"' -f4`
-hideplatform=`cat /etc/inc/globals.inc | grep hideplatform | cut -d'"' -f4`
+hideplatform=`cat /etc/inc/globals.inc | wc -l`
-if [ "$hideplatform" = "true" ]; then
+if [ "$hideplatform" -gt "0" ]; then
platformbanner="" # hide the platform
else
platformbanner=" on the '${PLATFORM}' platform"
OpenPOWER on IntegriCloud