whoogle-search/misc/tor/start-tor.sh
2021-12-19 11:59:06 -07:00

12 lines
207 B
Bash
Executable File

#!/bin/bash
if [ "$(whoami)" != "root" ]; then
tor -f /etc/tor/torrc
else
if (grep alpine /etc/os-release >/dev/null); then
rc-service tor start
else
service tor start
fi
fi