From b6bf112e77f30dda4e4fa092cd26406cbc2ff2ef Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 21 Dec 2016 16:48:33 +0000 Subject: [PATCH] Capital --- src/freedombone-sec | 4 ++-- src/freedombone-utils-onion | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/freedombone-sec b/src/freedombone-sec index 89f26f70..83d68ffa 100755 --- a/src/freedombone-sec +++ b/src/freedombone-sec @@ -752,12 +752,12 @@ function store_passwords { } function show_tor_bridges { - if ! grep "bridge " /etc/tor/torrc; then + if ! grep "Bridge " /etc/tor/torrc; then echo $'No Tor bridges have been added' return fi clear - grep "bridge " /etc/tor/torrc + grep "Bridge " /etc/tor/torrc } function add_tor_bridge { diff --git a/src/freedombone-utils-onion b/src/freedombone-utils-onion index b260a545..d0989d5e 100755 --- a/src/freedombone-utils-onion +++ b/src/freedombone-utils-onion @@ -435,7 +435,7 @@ function tor_add_bridge { echo 'UseBridges 1' >> /etc/tor/torrc fi - bridge_str="bridge $bridge_type ${bridge_ip_address}:${bridge_port} ${bridge_key}" + bridge_str="Bridge $bridge_type ${bridge_ip_address}:${bridge_port} ${bridge_key}" if ! grep "${bridge_str}" /etc/tor/torrc; then sed -i "/UseBridges/a ${bridge_str}" >> /etc/tor/torrc fi @@ -447,13 +447,13 @@ function tor_remove_bridge { bridge_ip_address="$1" bridge_type='obfs4' - bridge_str="bridge $bridge_type ${bridge_ip_address}" + bridge_str="Bridge $bridge_type ${bridge_ip_address}" if grep "${bridge_str}" /etc/tor/torrc; then sed -i "/${bridge_str}/d" /etc/tor/torrc fi # If there are no bridges remaining then remove UseBridges - if ! grep "bridge " /etc/tor/torrc; then + if ! grep "Bridge " /etc/tor/torrc; then if ! grep "#UseBridges" /etc/tor/torrc; then sed -i 's|UseBridges|#UseBridges|g' /etc/tor/torrc fi