From 73b48cf71ef4f332ee219aeb890c5006053fe31b Mon Sep 17 00:00:00 2001 From: gSpot Date: Tue, 17 Oct 2023 01:20:06 +0300 Subject: [PATCH] Update hotplug.d/iface/40-ruantiblock --- autoinstall/current/autoinstall.sh | 2 +- ruantiblock/Makefile | 2 +- ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/autoinstall/current/autoinstall.sh b/autoinstall/current/autoinstall.sh index e5ed9c4..f57f40a 100755 --- a/autoinstall/current/autoinstall.sh +++ b/autoinstall/current/autoinstall.sh @@ -9,7 +9,7 @@ LUA_MODULE=0 LUCI_APP=1 OWRT_VERSION="current" -RUAB_VERSION="1.3-0" +RUAB_VERSION="1.3-1" RUAB_MOD_LUA_VERSION="1.3-2" RUAB_LUCI_APP_VERSION="1.3-0" BASE_URL="https://raw.githubusercontent.com/gSpotx2f/packages-openwrt/master" diff --git a/ruantiblock/Makefile b/ruantiblock/Makefile index 56c9385..d609c1c 100644 --- a/ruantiblock/Makefile +++ b/ruantiblock/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ruantiblock PKG_VERSION:=1.3 -PKG_RELEASE:=0 +PKG_RELEASE:=1 PKG_MAINTAINER:=gSpot include $(INCLUDE_DIR)/package.mk diff --git a/ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock b/ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock index e9f4caf..3054535 100755 --- a/ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock +++ b/ruantiblock/files/etc/hotplug.d/iface/40-ruantiblock @@ -4,5 +4,8 @@ IF_VPN=`uci get ruantiblock.config.if_vpn` PROXY_MODE=`uci get ruantiblock.config.proxy_mode` if [ "$ACTION" = "ifup" ] && [ "$PROXY_MODE" = "2" ] && [ "$DEVICE" = "$IF_VPN" ]; then - [ `/usr/bin/ruantiblock raw-status` -ne 2 ] && /usr/bin/ruantiblock reload + if [ `/usr/bin/ruantiblock raw-status` -ne 2 ]; then + sleep 5 + /usr/bin/ruantiblock reload + fi fi