From 6a42b7bf383d2be68aa5a498bc07ff76bd363653 Mon Sep 17 00:00:00 2001 From: Rosy Song Date: Tue, 1 Jan 2019 15:54:33 +0800 Subject: [PATCH] nft-qos: fix monitor doesn't work when firstboot Signed-off-by: Rosy Song --- net/nft-qos/Makefile | 2 +- net/nft-qos/files/nft-qos-monitor.hotplug | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) 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 -- 2.30.2