From: Rosy Song Date: Tue, 1 Jan 2019 07:54:33 +0000 (+0800) Subject: nft-qos: fix monitor doesn't work when firstboot X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=refs%2Fpull%2F7827%2Fhead;p=feed%2Fpackages.git nft-qos: fix monitor doesn't work when firstboot Signed-off-by: Rosy Song --- diff --git a/net/nft-qos/Makefile b/net/nft-qos/Makefile index 3ec2b56011..6cc93560c8 100644 --- a/net/nft-qos/Makefile +++ b/net/nft-qos/Makefile @@ -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 diff --git a/net/nft-qos/files/nft-qos-monitor.hotplug b/net/nft-qos/files/nft-qos-monitor.hotplug index df04fa6d08..e263649b14 100644 --- a/net/nft-qos/files/nft-qos-monitor.hotplug +++ b/net/nft-qos/files/nft-qos-monitor.hotplug @@ -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