Add check install opera-proxy

This commit is contained in:
CodeRoK7
2025-07-08 10:57:01 +00:00
parent 73871d0864
commit b159e3caea

View File

@@ -532,6 +532,9 @@ uci set dhcp.cfg01411c.strictorder='1'
uci set dhcp.cfg01411c.filter_aaaa='1'
uci commit dhcp
if opkg list-installed | grep -q opera-proxy; then
echo "Opera-proxy already installed..."
else
echo "Install opera-proxy client..."
service stop vpn > /dev/null
rm -f /usr/bin/vpns /etc/init.d/vpn
@@ -575,6 +578,7 @@ echo "Setting sing-box..."
uci set sing-box.main.enabled='1'
uci set sing-box.main.user='root'
uci commit sing-box
fi
nameRule="option name 'Block_UDP_443'"
str=$(grep -i "$nameRule" /etc/config/firewall)