diff options
Diffstat (limited to 'scripts/toggle-xray.sh')
| -rwxr-xr-x | scripts/toggle-xray.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/toggle-xray.sh b/scripts/toggle-xray.sh new file mode 100755 index 0000000..a95ffd3 --- /dev/null +++ b/scripts/toggle-xray.sh @@ -0,0 +1,6 @@ +#!/bin/bash +if systemctl is-active --quiet xray; then + systemctl stop xray +else + systemctl start xray +fi |
