diff options
author | Warren Baker <warren@decoy.co.za> | 2012-03-13 15:00:58 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2012-03-13 15:00:58 +0200 |
commit | 71bdd22613962882d9b689c92ebf15abcc5da004 (patch) | |
tree | adbf9cf79e92bf9662c7fda814873b79fe3ab97b /etc | |
parent | c25197ba45300056f76b1894aca869d0e047c5f3 (diff) | |
download | pfsense-71bdd22613962882d9b689c92ebf15abcc5da004.zip pfsense-71bdd22613962882d9b689c92ebf15abcc5da004.tar.gz |
Rather make use of grep -c than all these pipes
Diffstat (limited to 'etc')
-rwxr-xr-x | etc/rc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |