mirror of
https://github.com/routerich/RouterichAX3000_configs.git
synced 2026-01-27 12:40:35 +03:00
Add check install opera-proxy
This commit is contained in:
@@ -532,6 +532,9 @@ uci set dhcp.cfg01411c.strictorder='1'
|
|||||||
uci set dhcp.cfg01411c.filter_aaaa='1'
|
uci set dhcp.cfg01411c.filter_aaaa='1'
|
||||||
uci commit dhcp
|
uci commit dhcp
|
||||||
|
|
||||||
|
if opkg list-installed | grep -q opera-proxy; then
|
||||||
|
echo "Opera-proxy already installed..."
|
||||||
|
else
|
||||||
echo "Install opera-proxy client..."
|
echo "Install opera-proxy client..."
|
||||||
service stop vpn > /dev/null
|
service stop vpn > /dev/null
|
||||||
rm -f /usr/bin/vpns /etc/init.d/vpn
|
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.enabled='1'
|
||||||
uci set sing-box.main.user='root'
|
uci set sing-box.main.user='root'
|
||||||
uci commit sing-box
|
uci commit sing-box
|
||||||
|
fi
|
||||||
|
|
||||||
nameRule="option name 'Block_UDP_443'"
|
nameRule="option name 'Block_UDP_443'"
|
||||||
str=$(grep -i "$nameRule" /etc/config/firewall)
|
str=$(grep -i "$nameRule" /etc/config/firewall)
|
||||||
|
|||||||
Reference in New Issue
Block a user