diff options
author | Warren Baker <warren@decoy.co.za> | 2012-02-20 15:55:06 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2012-02-20 15:55:06 +0200 |
commit | 9beeae5a3514b64695418f499d9182e3fda2b413 (patch) | |
tree | cf543eecf6abff197a8a9e66240db7085a21bd6d /usr/local | |
parent | 206aa9fc244e6581e35cbee3df0996a73318d2a9 (diff) | |
download | pfsense-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')
-rwxr-xr-x | usr/local/sbin/ppp-linkup | 2 |
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 |