Commit 4e907aaf authored by Eduard Toloza's avatar Eduard Toloza

Improve performance and compatibility

parent 5b80ee78
#!/bin/bash
#!/bin/sh
# Script that automate the procces for setting up TOR as a tranparent proxy
# Autor: Edu4rdSHL @edu4rdshl
#Defining variables
istor=$(which tor 2> /dev/null)
istor=$(command -v tor > /dev/null)
torconfig="/etc/tor/torrc"
torconfigbackup="/etc/tor/torrc.backup"
issystemd=$(which systemctl 2> /dev/null)
executablerules="./files/tor-router"
servicefile="./files/tor-router.service"
iscurl=$(which curl 2> /dev/null)
issystemd=$(command -v systemctl > /dev/null)
executablerules="$PWD/files/tor-router"
servicefile="$PWD/files/tor-router.service"
iscurl=$(command -v curl > /dev/null)
#Check if the current user have root privileges
if [ "$UID" -ne "0" ] ; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment