Script for install

This commit is contained in:
itdoginfo
2024-10-13 00:53:10 +03:00
parent cd0b19ae46
commit d0a1a2b801
2 changed files with 20 additions and 1 deletions

18
install.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/sh
REPO="https://api.github.com/repos/itdoginfo/podkop/releases/latest"
DOWNLOAD_DIR="/tmp/podkop"
mkdir -p "$DOWNLOAD_DIR"
wget -qO- "$REPO" | grep -o 'https://[^"]*\.ipk' | while read -r url; do
filename=$(basename "$url")
echo "Download $filename..."
wget -q -O "$DOWNLOAD_DIR/$filename" "$url"
done
echo "Installed..."
opkg install $DOWNLOAD_DIR/podkop*.ipk
opkg install $DOWNLOAD_DIR/luci-app-podkop*.ipk
echo "Install sing-box for proxy, or install and configure WG/OpenVPN/AWG/etc for VPN mode"