From ad22530333c70c03a6c9bef472562a50727a5579 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 2 Apr 2009 20:57:21 -0400 Subject: Correct check for hideplatform --- etc/rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'etc/rc') 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" -- cgit v1.1