summaryrefslogtreecommitdiffstats
path: root/etc/rc
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2012-03-13 15:00:58 +0200
committerWarren Baker <warren@decoy.co.za>2012-03-13 15:00:58 +0200
commit71bdd22613962882d9b689c92ebf15abcc5da004 (patch)
treeadbf9cf79e92bf9662c7fda814873b79fe3ab97b /etc/rc
parentc25197ba45300056f76b1894aca869d0e047c5f3 (diff)
downloadpfsense-71bdd22613962882d9b689c92ebf15abcc5da004.zip
pfsense-71bdd22613962882d9b689c92ebf15abcc5da004.tar.gz
Rather make use of grep -c than all these pipes
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 c9fc16e..241509c 100755
--- a/etc/rc
+++ b/etc/rc
@@ -256,8 +256,8 @@ if [ "$PLATFORM" != "pfSense" ]; then
fi
echo -n "."
-DISABLESYSLOGCLOG=`cat /cf/conf/config.xml | grep disablesyslogclog | wc -l | awk '{ print $1 }'`
-ENABLEFIFOLOG=`cat /cf/conf/config.xml | grep usefifolog | wc -l | awk '{ print $1 }'`
+DISABLESYSLOGCLOG=`/usr/bin/grep -c disablesyslogclog /cf/conf/config.xml`
+ENABLEFIFOLOG=`/usr/bin/grep -c usefifolog /cf/conf/config.xml`
LOG_FILES="system filter dhcpd vpn pptps poes l2tps openvpn portalauth ipsec ppp relayd wireless lighttpd ntpd apinger"
for logfile in $LOG_FILES; do
if [ "$DISABLESYSLOGCLOG" -gt "0" ]; then
OpenPOWER on IntegriCloud