summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2012-02-20 15:55:06 +0200
committerWarren Baker <warren@decoy.co.za>2012-02-20 15:55:06 +0200
commit9beeae5a3514b64695418f499d9182e3fda2b413 (patch)
treecf543eecf6abff197a8a9e66240db7085a21bd6d /usr/local/sbin
parent206aa9fc244e6581e35cbee3df0996a73318d2a9 (diff)
downloadpfsense-9beeae5a3514b64695418f499d9182e3fda2b413.zip
pfsense-9beeae5a3514b64695418f499d9182e3fda2b413.tar.gz
Rather use -c to check for line count, we then dont have to deal with extra whitespaces
Diffstat (limited to 'usr/local/sbin')
-rwxr-xr-xusr/local/sbin/ppp-linkup2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/sbin/ppp-linkup b/usr/local/sbin/ppp-linkup
index 1e6cc01..42e0705 100755
--- a/usr/local/sbin/ppp-linkup
+++ b/usr/local/sbin/ppp-linkup
@@ -5,7 +5,7 @@
/bin/echo $3 > /tmp/$1_ip
/usr/bin/touch /tmp/$1up
-ALLOWOVERRIDE=`/usr/bin/grep dnsallowoverride /conf/config.xml | /usr/bin/wc -l`
+ALLOWOVERRIDE=`/usr/bin/grep -c dnsallowoverride /conf/config.xml`
if [ $ALLOWOVERRIDE -gt 0 ]; then
# write nameservers to file
if [ $6 = "dns1" ]; then
OpenPOWER on IntegriCloud