From 3df8c1e8ff2f18550e7b081b5c62e6ed0ab5d591 Mon Sep 17 00:00:00 2001 From: Fazilov Kamil Date: Tue, 20 May 2025 15:38:39 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=86=D0=B5=D1=81=D1=81=20=D1=83=D1=81=D1=82=D0=B0=D0=BD?= =?UTF-8?q?=D0=BE=D0=B2=D0=BA=D0=B8=20Zapret=20+=20=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D0=BD=D1=83=D0=BB=20=D1=81=D1=82=D0=B0=D1=80=D1=8B=D0=B5=20?= =?UTF-8?q?=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- getconfig.sh | 47 +++++++++++++++++++---------------------------- 1 file changed, 19 insertions(+), 28 deletions(-) diff --git a/getconfig.sh b/getconfig.sh index e45fd39..0d5373e 100644 --- a/getconfig.sh +++ b/getconfig.sh @@ -22,16 +22,7 @@ cat > /etc/init.d/getdomains << EOF START=99 start () { - VPN_NOT_WOKRING=\$(sing-box -c /etc/sing-box/config.json tools fetch instagram.com 2>&1 | grep FATAL) - if [ -z "\${VPN_NOT_WOKRING}" ] - then - # WITHOUT YOUTUBE - DOMAINS=https://raw.githubusercontent.com/AnotherProksY/allow-domains-no-youtube/main/Russia/inside-dnsmasq-nfset.lst - else - # WITH YOUTUBE - DOMAINS=https://raw.githubusercontent.com/AnotherProksY/allow-domains/main/Russia/inside-dnsmasq-nfset.lst - fi - + DOMAINS=https://raw.githubusercontent.com/AnotherProksY/allow-domains/main/Russia/inside-dnsmasq-nfset.lst count=0 while true; do if curl -m 3 github.com; then @@ -92,30 +83,30 @@ cp /etc/hotplug.d/iface/40-getvpnconfig /etc/hotplug.d/net/ chmod +x /etc/hotplug.d/iface/40-getvpnconfig # 6. Обновление пакетов openwrt -opkg update +# opkg update # 7. Скачиваем файлы zapret в /tmp -wget -O /tmp/zapret-core.ipk https://raw.githubusercontent.com/Official-VPN/Telegraph-Images/main/zapret-files/zapret-core.ipk -wget -O /tmp/luciapp-zapret.ipk https://raw.githubusercontent.com/Official-VPN/Telegraph-Images/main/zapret-files/luciapp-zapret.ipk +# wget -O /tmp/zapret-core.ipk https://raw.githubusercontent.com/Official-VPN/Telegraph-Images/main/zapret-files/zapret-core.ipk +# wget -O /tmp/luciapp-zapret.ipk https://raw.githubusercontent.com/Official-VPN/Telegraph-Images/main/zapret-files/luciapp-zapret.ipk # 8. Устанавливаем файлы -if opkg install /tmp/zapret-core.ipk; then - echo "Zapret installed successfully." -else - echo "Failed to install Zapret." - exit 1 -fi - -if opkg install /tmp/luciapp-zapret.ipk; then - echo "LuCI app installed successfully." -else - echo "Failed to install LuCI app." - exit 1 -fi +# if opkg install /tmp/zapret-core.ipk; then +# echo "Zapret installed successfully." +# else +# echo "Failed to install Zapret." +# exit 1 +# fi +# +# if opkg install /tmp/luciapp-zapret.ipk; then +# echo "LuCI app installed successfully." +# else +# echo "Failed to install LuCI app." +# exit 1 +# fi # 9. Удаляем файлы zapret из /tmp -rm /tmp/zapret-core.ipk -rm /tmp/luciapp-zapret.ipk +# rm /tmp/zapret-core.ipk +# rm /tmp/luciapp-zapret.ipk # 10. Удалить старый конфиг (если он есть) rm -rf /etc/sing-box/config.json