From 928618e03da82aba40b4d7f8b03bfe8aebae963e Mon Sep 17 00:00:00 2001 From: gSpot Date: Tue, 2 Jan 2024 17:05:14 +0300 Subject: [PATCH] Minor fixes --- ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock b/ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock index 08f1693..7fe4587 100755 --- a/ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock +++ b/ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock @@ -13,8 +13,5 @@ VPN_ROUTE_CHECK=`$UCI_CMD get ruantiblock.config.vpn_route_check` [ "$VPN_ROUTE_CHECK" != "0" ] && exit 0 if [ "$ACTION" = "ifup" ] && [ "$PROXY_MODE" = "2" ] && [ "$DEVICE" = "$IF_VPN" ]; then - if [ `$RUAB_CMD raw-status` -ne 2 ]; then - sleep 5 - $RUAB_CMD reload - fi + [ `$RUAB_CMD raw-status` -ne 2 ] && $RUAB_CMD reload fi