mirror of
https://github.com/kenzok8/openwrt-packages
synced 2025-01-09 09:07:28 +08:00
update 2023-02-11 08:39:18
This commit is contained in:
parent
5427042f26
commit
f3b42992e0
@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=luci-app-passwall
|
||||
PKG_VERSION:=4.58
|
||||
PKG_RELEASE:=2
|
||||
PKG_RELEASE:=3
|
||||
|
||||
PKG_CONFIG_DEPENDS:= \
|
||||
CONFIG_PACKAGE_$(PKG_NAME)_Iptables_Transparent_Proxy \
|
||||
|
@ -1,6 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
[[ "$ACTION" == "ifup" && $(uci get "passwall.@global[0].enabled") == "1" ]] && {
|
||||
/etc/init.d/passwall restart
|
||||
echo "passwall: restart when $INTERFACE ifup" > /dev/kmsg
|
||||
default_device=$(ip route | grep default | awk -F 'dev ' '{print $2}' | awk '{print $1}')
|
||||
[ "$default_device" == "$DEVICE" ] && {
|
||||
/etc/init.d/passwall restart
|
||||
echo "passwall: restart when $INTERFACE ifup" > /dev/kmsg
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user