diff --git a/liveuser/.config/autostart/dnscrypt.sh.desktop b/liveuser/.config/autostart/dnscrypt.sh.desktop new file mode 100755 index 00000000..d4d958b4 --- /dev/null +++ b/liveuser/.config/autostart/dnscrypt.sh.desktop @@ -0,0 +1,8 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Exec=/bin/sh -c '~/.local/bin/dnscrypt.sh' +Icon= +Name=dnscrypt.sh +Path= +Terminal=false +Type=Application diff --git a/liveuser/.config/autostart/tor.sh.desktop b/liveuser/.config/autostart/tor.sh.desktop new file mode 100755 index 00000000..88390509 --- /dev/null +++ b/liveuser/.config/autostart/tor.sh.desktop @@ -0,0 +1,8 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Exec=/bin/sh -c '~/.local/bin/tor.sh' +Icon= +Name=tor.sh +Path= +Terminal=false +Type=Application diff --git a/liveuser/.config/autostart/tuned.sh.desktop b/liveuser/.config/autostart/tuned.sh.desktop new file mode 100755 index 00000000..7e32e969 --- /dev/null +++ b/liveuser/.config/autostart/tuned.sh.desktop @@ -0,0 +1,8 @@ +#!/usr/bin/env xdg-open +[Desktop Entry] +Exec=/bin/sh -c '~/.local/bin/tuned.sh' +Icon= +Name=tuned.sh +Path= +Terminal=false +Type=Application diff --git a/liveuser/.local/bin/dnscrypt.sh b/liveuser/.local/bin/dnscrypt.sh new file mode 100755 index 00000000..9d84a33c --- /dev/null +++ b/liveuser/.local/bin/dnscrypt.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [[ "$UID" != 0 ]]; then + echo "USER NOT ROOT" + sudo "$0" + exit +else + echo "USER IS ROOT" +fi + +$status=$(systemctl status dnscrypt-proxy.service) + +if [[ "$status" != 0 ]]; then + systemctl restart dnscrypt-proxy.service +fi diff --git a/liveuser/.local/bin/tor.sh b/liveuser/.local/bin/tor.sh new file mode 100755 index 00000000..f35e5663 --- /dev/null +++ b/liveuser/.local/bin/tor.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +if [[ "$UID" != 0 ]]; then + echo "USER NOT ROOT" + sudo "$0" + exit +else + echo "USER IS ROOT" +fi + +$status=$(systemctl status tor) + +if [[ "$status" != 0 ]]; then + systemctl restart tor +fi diff --git a/liveuser/.local/bin/tuned.sh b/liveuser/.local/bin/tuned.sh new file mode 100755 index 00000000..b7db89c8 --- /dev/null +++ b/liveuser/.local/bin/tuned.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +if [[ "$UID" != 0 ]]; then + echo "USER NOT ROOT" + sudo "$0" + exit +else + echo "USER IS ROOT" +fi + +$status=$(systemctl status tuned tuned-ppd) + +if [[ "$status" != 0 ]]; then + systemctl restart tuned tuned-ppd +# systemctl --user restart plasma-plasmashell +fi