mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 14:19:43 +00:00
23 lines
333 B
Bash
Executable file
23 lines
333 B
Bash
Executable file
#!/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
|