mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-22 16:10:55 +02:00
remove paging
This commit is contained in:
@@ -260,14 +260,14 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
|||||||
|
|
||||||
# check if Tor was already installed and is funtional
|
# check if Tor was already installed and is funtional
|
||||||
echo ""
|
echo ""
|
||||||
echo "*** Check if Tor service is functional ***"
|
echo "# *** Check if Tor service is functional ***"
|
||||||
torRunningTest=$(sudo systemctl status tor@default | grep -c "Active: active")
|
torRunningTest=$(sudo systemctl --no-pager status tor@default | grep -c "Active: active")
|
||||||
#torRunningTest=$(curl --connect-timeout 30 --socks5-hostname "127.0.0.1:9050" https://check.torproject.org 2>/dev/null | grep -c "Congratulations. This browser is configured to use Tor.")
|
#torRunningTest=$(curl --connect-timeout 30 --socks5-hostname "127.0.0.1:9050" https://check.torproject.org 2>/dev/null | grep -c "Congratulations. This browser is configured to use Tor.")
|
||||||
if [ "${torRunningTest}" == "0" ]; then
|
if [ "${torRunningTest}" == "0" ]; then
|
||||||
echo "Tor not running (${torRunningTest})... proceed with switching to Tor."
|
echo "# Tor not running (${torRunningTest})... proceed with switching to Tor."
|
||||||
echo ""
|
echo ""
|
||||||
else
|
else
|
||||||
echo "You are all good - Tor is already running."
|
echo "# You are all good - Tor is already running."
|
||||||
echo ""
|
echo ""
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user