nikovpn_openwrt/uninstall.sh
Niko Marmeladkov d4d00aa0e1
on-router install: git clone + ./install.sh
- install.sh работает из клона на роутере: креды из /root/creds
  или env NIKOVPN_CREDS, бинарники качаются с f.n1ko.dev с фолбэком
  на локальный bin/ и versions из репозитория
- README: быстрый старт git.n1ko.dev:Niko/nikovpn_openwrt.git,
  nikovpn.py (SSH-управление с ПК) — как опциональный способ
- .gitignore: bin/ (~150MB) и __pycache__ не коммитятся
2026-08-26 09:44:07 +03:00

16 lines
No EOL
591 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
URL="https://f.n1ko.dev/nikovpn_openwrt/install.sh"
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
if [ -s "$TMP" ]; then
chmod +x "$TMP"
exec "$TMP" uninstall
fi
echo "не удалось загрузить install.sh с f.n1ko.dev" >&2
exit 1