Fix static analysis warnings
This commit is contained in:
parent
89be347596
commit
bf0b31aa7f
|
@ -360,12 +360,12 @@ function mesh_firewall {
|
||||||
FIREWALL_FILENAME="${rootdir}/etc/systemd/system/meshfirewall.service"
|
FIREWALL_FILENAME="${rootdir}/etc/systemd/system/meshfirewall.service"
|
||||||
MESH_FIREWALL_SCRIPT=${rootdir}/usr/bin/mesh-firewall
|
MESH_FIREWALL_SCRIPT=${rootdir}/usr/bin/mesh-firewall
|
||||||
|
|
||||||
if ! grep -q 'telemetry.mozilla' ${rootdir}/etc/hosts; then
|
if ! grep -q 'telemetry.mozilla' "${rootdir}/etc/hosts"; then
|
||||||
echo '127.0.0.1 telemetry.mozilla.org' >> ${rootdir}/etc/hosts
|
echo '127.0.0.1 telemetry.mozilla.org' >> "${rootdir}/etc/hosts"
|
||||||
echo '127.0.0.1 incoming.telemetry.mozilla.org' >> ${rootdir}/etc/hosts
|
echo '127.0.0.1 incoming.telemetry.mozilla.org' >> "${rootdir}/etc/hosts"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q 'facebook' ${rootdir}/etc/hosts; then
|
if ! grep -q 'facebook' "${rootdir}/etc/hosts"; then
|
||||||
{ echo '127.0.0.1 www.facebook.com';
|
{ echo '127.0.0.1 www.facebook.com';
|
||||||
echo '127.0.0.1 facebook.com';
|
echo '127.0.0.1 facebook.com';
|
||||||
echo '127.0.0.1 static.ak.fbcdn.net';
|
echo '127.0.0.1 static.ak.fbcdn.net';
|
||||||
|
@ -377,13 +377,13 @@ function mesh_firewall {
|
||||||
echo '127.0.0.1 fbcdn.com';
|
echo '127.0.0.1 fbcdn.com';
|
||||||
echo '127.0.0.1 www.fbcdn.com';
|
echo '127.0.0.1 www.fbcdn.com';
|
||||||
echo '127.0.0.1 static.ak.connect.facebook.com';
|
echo '127.0.0.1 static.ak.connect.facebook.com';
|
||||||
echo '127.0.0.1 www.static.ak.connect.facebook.com'; } >> ${rootdir}/etc/hosts
|
echo '127.0.0.1 www.static.ak.connect.facebook.com'; } >> "${rootdir}/etc/hosts"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! grep -q 'google' ${rootdir}/etc/hosts; then
|
if ! grep -q 'google' "${rootdir}/etc/hosts"; then
|
||||||
{ echo '127.0.0.1 www.google-analytics.com';
|
{ echo '127.0.0.1 www.google-analytics.com';
|
||||||
echo '127.0.0.1 google-analytics.com';
|
echo '127.0.0.1 google-analytics.com';
|
||||||
echo '127.0.0.1 ssl.google-analytics.com'; } >> ${rootdir}/etc/hosts
|
echo '127.0.0.1 ssl.google-analytics.com'; } >> "${rootdir}/etc/hosts"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
{ echo '#!/bin/bash';
|
{ echo '#!/bin/bash';
|
||||||
|
|
Loading…
Reference in New Issue