aboutsummaryrefslogtreecommitdiff
path: root/modules/tor
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-22 01:35:30 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-22 01:35:30 +0100
commitbf7dc6456d8eaac648867c3b442ff7daed2ff7fb (patch)
tree7f550a585698136add1c423d188d32dda097189b /modules/tor
parent8ec45bf4a0077ade158bef800f54e9d614fb1a17 (diff)
Added tor module
Diffstat (limited to 'modules/tor')
-rwxr-xr-xmodules/tor23
1 files changed, 23 insertions, 0 deletions
diff --git a/modules/tor b/modules/tor
new file mode 100755
index 0000000..74ff5b1
--- /dev/null
+++ b/modules/tor
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+# Prints if the tor service is enabled or not
+# Requires tor
+
+TOR_ENABLED='ﴣ'
+TOR_DISABLED=''
+
+get_tor()
+{
+ status=$(systemctl is-active tor.service)
+
+ if [ "$status" == "active" ]
+ then
+ echo "$TOR_ENABLED"
+ else
+ :
+ #echo "$TOR_DISABLED"
+ fi
+
+}
+
+get_tor