You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
413 B
Bash
13 lines
413 B
Bash
2 years ago
|
#!/bin/sh
|
||
|
# the script installs tor and its config file from files/etc/tor/torrc.
|
||
|
xbps-install -y tor
|
||
|
conffile=etc/tor/torrc
|
||
|
test -f /$conffile && diff /$conffile files/$conffile
|
||
|
if [ $? -ne 0 ]; then
|
||
|
cp /$conffile /$conffile.orig
|
||
|
cp files/$conffile /$conffile
|
||
|
ln -sfT /etc/sv/tor /var/service/tor
|
||
|
# don't touch the service if on manual control
|
||
|
test ! -f /etc/sv/tor/down && sv restart tor
|
||
|
fi
|