Merge pull request #7827 from rosysong/nft-qos
nft-qos: fix monitor doesn't work when firstboot
This commit is contained in:
commit
ceebed0c67
2 changed files with 11 additions and 3 deletions
|
@ -8,7 +8,7 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=nft-qos
|
PKG_NAME:=nft-qos
|
||||||
PKG_VERSION:=1.0.2
|
PKG_VERSION:=1.0.3
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_LICENSE:=GPL-2.0
|
PKG_LICENSE:=GPL-2.0
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,14 @@
|
||||||
logger -t nft-qos-monitor "ACTION=$ACTION, MACADDR=$MACADDR, IPADDR=$IPADDR, HOSTNAME=$HOSTNAME"
|
logger -t nft-qos-monitor "ACTION=$ACTION, MACADDR=$MACADDR, IPADDR=$IPADDR, HOSTNAME=$HOSTNAME"
|
||||||
|
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
add | update) qosdef_init_env && qosdef_monitor_add $MACADDR $IPADDR $HOSTNAME;;
|
add | update)
|
||||||
remove) qosdef_init_env && qosdef_monitor_del $MACADDR $IPADDR $HOSTNAME;;
|
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
|
esac
|
||||||
|
|
Loading…
Reference in a new issue