Убрал процесс установки Zapret + вернул старые скрипты
This commit is contained in:
+19
-28
@@ -22,16 +22,7 @@ cat > /etc/init.d/getdomains << EOF
|
|||||||
START=99
|
START=99
|
||||||
|
|
||||||
start () {
|
start () {
|
||||||
VPN_NOT_WOKRING=\$(sing-box -c /etc/sing-box/config.json tools fetch instagram.com 2>&1 | grep FATAL)
|
DOMAINS=https://raw.githubusercontent.com/AnotherProksY/allow-domains/main/Russia/inside-dnsmasq-nfset.lst
|
||||||
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
|
|
||||||
|
|
||||||
count=0
|
count=0
|
||||||
while true; do
|
while true; do
|
||||||
if curl -m 3 github.com; then
|
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
|
chmod +x /etc/hotplug.d/iface/40-getvpnconfig
|
||||||
|
|
||||||
# 6. Обновление пакетов openwrt
|
# 6. Обновление пакетов openwrt
|
||||||
opkg update
|
# opkg update
|
||||||
|
|
||||||
# 7. Скачиваем файлы zapret в /tmp
|
# 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/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/luciapp-zapret.ipk https://raw.githubusercontent.com/Official-VPN/Telegraph-Images/main/zapret-files/luciapp-zapret.ipk
|
||||||
|
|
||||||
# 8. Устанавливаем файлы
|
# 8. Устанавливаем файлы
|
||||||
if opkg install /tmp/zapret-core.ipk; then
|
# if opkg install /tmp/zapret-core.ipk; then
|
||||||
echo "Zapret installed successfully."
|
# echo "Zapret installed successfully."
|
||||||
else
|
# else
|
||||||
echo "Failed to install Zapret."
|
# echo "Failed to install Zapret."
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
|
#
|
||||||
if opkg install /tmp/luciapp-zapret.ipk; then
|
# if opkg install /tmp/luciapp-zapret.ipk; then
|
||||||
echo "LuCI app installed successfully."
|
# echo "LuCI app installed successfully."
|
||||||
else
|
# else
|
||||||
echo "Failed to install LuCI app."
|
# echo "Failed to install LuCI app."
|
||||||
exit 1
|
# exit 1
|
||||||
fi
|
# fi
|
||||||
|
|
||||||
# 9. Удаляем файлы zapret из /tmp
|
# 9. Удаляем файлы zapret из /tmp
|
||||||
rm /tmp/zapret-core.ipk
|
# rm /tmp/zapret-core.ipk
|
||||||
rm /tmp/luciapp-zapret.ipk
|
# rm /tmp/luciapp-zapret.ipk
|
||||||
|
|
||||||
# 10. Удалить старый конфиг (если он есть)
|
# 10. Удалить старый конфиг (если он есть)
|
||||||
rm -rf /etc/sing-box/config.json
|
rm -rf /etc/sing-box/config.json
|
||||||
|
|||||||
Reference in New Issue
Block a user