nikovpn_openwrt/uninstall.sh
Niko Marmeladkov aeb8fd6077
бинарники из релизов репозитория вместо f.n1ko.dev
- релиз bins: sing-box/ipt2socks для всех архитектур + versions + install.sh
  (https://git.n1ko.dev/Niko/nikovpn_openwrt/releases/download/bins/<file>)
- install.sh/nikovpn.py/wrappers: источники по порядку — релиз ->
  f.n1ko.dev (резерв) -> локальный bin/
- статус: traffic_total это всего потрачено, а не лимит (traffic_limit=0
  значит безлимит)
2026-08-26 12:07:32 +03:00

21 lines
No EOL
761 B
Bash
Executable file
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# NikoVPN: удаление VPN (останавливает сервисы и чистит firewall)
[ -f /etc/nikovpn/install.sh ] && exec /etc/nikovpn/install.sh uninstall
TMP=/tmp/nikovpn-uninstall.sh
for URL in \
"https://git.n1ko.dev/Niko/nikovpn_openwrt/releases/download/bins/install.sh" \
"https://f.n1ko.dev/nikovpn_openwrt/install.sh"; do
if command -v curl >/dev/null 2>&1; then
curl -fsSL "$URL" -o "$TMP" 2>/dev/null
elif command -v wget >/dev/null 2>&1; then
wget -q "$URL" -O "$TMP" 2>/dev/null
fi
[ -s "$TMP" ] && break
rm -f "$TMP"
done
if [ -s "$TMP" ]; then
chmod +x "$TMP"
exec "$TMP" uninstall
fi
echo "не удалось загрузить install.sh с f.n1ko.dev" >&2
exit 1