almost finaly

This commit is contained in:
2026-09-13 19:18:33 +06:00
parent 3a7be7b631
commit 18ed76636f
17 changed files with 894 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/bash
if pgrep -x "v2raya" > /dev/null; then
if [ "$1" = "toggle" ]; then
sudo systemctl stop v2raya.service 2>/dev/null || sudo killall v2raya
echo "{\"text\": \" \", \"class\": \"disabled\", \"tooltip\": \"v2rayA выключен\"}"
else
echo "{\"text\": \" \", \"class\": \"enabled\", \"tooltip\": \"v2rayA включен\"}"
fi
else
if [ "$1" = "toggle" ]; then
sudo systemctl start v2raya.service 2>/dev/null || sudo v2raya --daemon &
echo "{\"text\": \" \", \"class\": \"enabled\", \"tooltip\": \"v2rayA включен\"}"
else
echo "{\"text\": \" \", \"class\": \"disabled\", \"tooltip\": \"v2rayA выключен\"}"
fi
fi