nft-qos: fix monitor doesn't work when firstboot 7827/head
authorRosy Song <rosysong@rosinson.com>
Tue, 1 Jan 2019 07:54:33 +0000 (15:54 +0800)
committerRosy Song <rosysong@rosinson.com>
Wed, 2 Jan 2019 01:20:36 +0000 (09:20 +0800)
Signed-off-by: Rosy Song <rosysong@rosinson.com>
net/nft-qos/Makefile
net/nft-qos/files/nft-qos-monitor.hotplug

index 3ec2b56011c60c51181f04ba29deb41f6365eca6..6cc93560c85a5701325c9e2714f19562f186c00c 100644 (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
 
index df04fa6d088a389f5bdd482947d70c5d31a6a9ab..e263649b140c0fea8306688af829b1f5550b2bce 100644 (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