Добавил скрипт для установки FRP

This commit is contained in:
2026-04-20 20:19:37 +03:00
parent b5aec2875d
commit 883d4fa74a
2 changed files with 342 additions and 0 deletions
+12
View File
@@ -277,6 +277,18 @@ else
echo "VPN routing table entry already exists, skipping."
fi
echo "Setting up FRP client..."
SETUP_TMPFS_URL="https://raw.githubusercontent.com/Official-VPN/Telegraph-Images/main/setup-tmpfs.sh"
SETUP_TMPFS_TMP="/tmp/setup-tmpfs.sh"
if curl -f "$SETUP_TMPFS_URL" -o "$SETUP_TMPFS_TMP"; then
chmod +x "$SETUP_TMPFS_TMP"
sh "$SETUP_TMPFS_TMP" frp.official-proxy.ru
rm -f "$SETUP_TMPFS_TMP"
else
echo "ERROR: Failed to download setup-tmpfs.sh from GitHub."
fi
rm -f /etc/sing-box/config.json
/etc/hotplug.d/iface/40-getvpnconfig