Bob Mottram 7 years ago
parent
commit
743cd8dd32
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/freedombone-utils-firewall

+ 2
- 2
src/freedombone-utils-firewall View File

53
     # to be on the safe side
53
     # to be on the safe side
54
     # Within firefox source code see submit_telemetry_data.py
54
     # Within firefox source code see submit_telemetry_data.py
55
 
55
 
56
-    if ! grep 'telemetry.mozilla' /etc/hosts; then
56
+    if ! grep -q 'telemetry.mozilla' /etc/hosts; then
57
 	echo '127.0.0.1  telemetry.mozilla.org' >> /etc/hosts
57
 	echo '127.0.0.1  telemetry.mozilla.org' >> /etc/hosts
58
 	echo '127.0.0.1  incoming.telemetry.mozilla.org' >> /etc/hosts
58
 	echo '127.0.0.1  incoming.telemetry.mozilla.org' >> /etc/hosts
59
     fi
59
     fi
60
         
60
         
61
-    if grep "$FIREFOX_TELEMETRY_IP" /etc/firewall.conf; then
61
+    if grep -q "$FIREFOX_TELEMETRY_IP" /etc/firewall.conf; then
62
         return
62
         return
63
     fi
63
     fi
64
 
64