nano-tetra-modules/tor/scripts/dependencies.sh
Marc 0a3e973d99
Module Updates for 2.6.0+ (Wave 1) (#69)
* Misc: Ignore JetBrains IDE files

* Modules: Update Modules for 2.6.0 (1)

* SiteSurvey: Actually install mdk3 dependency.
2019-08-21 21:09:45 +01:00

29 lines
659 B
Bash
Executable File

#!/bin/sh
# author: catatonicprime
# date: March 2018
touch /tmp/tor.progress
if [ "$1" = "install" ]; then
opkg update
if [ "$2" = "internal" ]; then
opkg install tor-geoip tor
elif [ "$2" = "sd" ]; then
opkg install tor-geoip tor --dest sd
fi
mkdir -p /etc/config/tor/
cp /pineapple/modules/tor/files/torrc /etc/config/tor
mkdir -p /etc/config/tor/services
chown tor:tor /etc/config/tor/services
chown root:tor /etc/tor/torrc
chmod g+r /etc/tor/torrc
elif [ "$1" = "remove" ]; then
opkg remove tor-geoip tor
sed -i '/tor\/scripts\/autostart_tor.sh/d' /etc/rc.local
rm -rf /etc/config/tor
fi
rm /tmp/tor.progress