From 6a42b7bf383d2be68aa5a498bc07ff76bd363653 Mon Sep 17 00:00:00 2001 From: Rosy Song Date: Tue, 1 Jan 2019 15:54:33 +0800 Subject: nft-qos: fix monitor doesn't work when firstboot Signed-off-by: Rosy Song --- net/nft-qos/files/nft-qos-monitor.hotplug | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'net/nft-qos/files') diff --git a/net/nft-qos/files/nft-qos-monitor.hotplug b/net/nft-qos/files/nft-qos-monitor.hotplug index df04fa6d0..e263649b1 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 -- cgit v1.2.3