mirror of
https://github.com/gSpotx2f/ruantiblock_openwrt.git
synced 2026-05-14 22:50:58 +00:00
Update hotplug.d/iface/40-ruantiblock
This commit is contained in:
@@ -9,7 +9,7 @@ LUA_MODULE=0
|
|||||||
LUCI_APP=1
|
LUCI_APP=1
|
||||||
|
|
||||||
OWRT_VERSION="current"
|
OWRT_VERSION="current"
|
||||||
RUAB_VERSION="1.3-0"
|
RUAB_VERSION="1.3-1"
|
||||||
RUAB_MOD_LUA_VERSION="1.3-2"
|
RUAB_MOD_LUA_VERSION="1.3-2"
|
||||||
RUAB_LUCI_APP_VERSION="1.3-0"
|
RUAB_LUCI_APP_VERSION="1.3-0"
|
||||||
BASE_URL="https://raw.githubusercontent.com/gSpotx2f/packages-openwrt/master"
|
BASE_URL="https://raw.githubusercontent.com/gSpotx2f/packages-openwrt/master"
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
|||||||
|
|
||||||
PKG_NAME:=ruantiblock
|
PKG_NAME:=ruantiblock
|
||||||
PKG_VERSION:=1.3
|
PKG_VERSION:=1.3
|
||||||
PKG_RELEASE:=0
|
PKG_RELEASE:=1
|
||||||
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/ruantiblock_openwrt>
|
PKG_MAINTAINER:=gSpot <https://github.com/gSpotx2f/ruantiblock_openwrt>
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|||||||
@@ -4,5 +4,8 @@ IF_VPN=`uci get ruantiblock.config.if_vpn`
|
|||||||
PROXY_MODE=`uci get ruantiblock.config.proxy_mode`
|
PROXY_MODE=`uci get ruantiblock.config.proxy_mode`
|
||||||
|
|
||||||
if [ "$ACTION" = "ifup" ] && [ "$PROXY_MODE" = "2" ] && [ "$DEVICE" = "$IF_VPN" ]; then
|
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
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user