1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 04:44:10 +02:00

nft-qos: fix monitor doesn't work when firstboot

Signed-off-by: Rosy Song <rosysong@rosinson.com>
This commit is contained in:
Rosy Song 2019-01-01 15:54:33 +08:00
parent 5bae7c73a7
commit 6a42b7bf38
2 changed files with 11 additions and 3 deletions

View File

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=nft-qos
PKG_VERSION:=1.0.2
PKG_VERSION:=1.0.3
PKG_RELEASE:=1
PKG_LICENSE:=GPL-2.0

View File

@ -8,6 +8,14 @@
logger -t nft-qos-monitor "ACTION=$ACTION, MACADDR=$MACADDR, IPADDR=$IPADDR, HOSTNAME=$HOSTNAME"
case "$ACTION" in
add | update) qosdef_init_env && qosdef_monitor_add $MACADDR $IPADDR $HOSTNAME;;
remove) qosdef_init_env && qosdef_monitor_del $MACADDR $IPADDR $HOSTNAME;;
add | update)
qosdef_init_env
qosdef_init_monitor
qosdef_monitor_add $MACADDR $IPADDR $HOSTNAME
;;
remove)
qosdef_init_env
qosdef_init_monitor
qosdef_monitor_del $MACADDR $IPADDR $HOSTNAME
;;
esac