whoogle-search/misc/tor/start-tor.sh

12 lines
205 B
Bash
Raw Normal View History

#!/bin/sh
if [ "$(whoami)" != "root" ]; then
tor -f /etc/tor/torrc
else
2021-12-19 18:59:06 +00:00
if (grep alpine /etc/os-release >/dev/null); then
rc-service tor start
else
service tor start
fi
fi