diff options
author | Rosy Song <rosysong@rosinson.com> | 2019-01-01 15:54:33 +0800 |
---|---|---|
committer | Rosy Song <rosysong@rosinson.com> | 2019-01-02 09:20:36 +0800 |
commit | 6a42b7bf383d2be68aa5a498bc07ff76bd363653 (patch) | |
tree | fec98a93c47038295782f49c6abaabbe3cd1e953 /net/nft-qos/files | |
parent | 5bae7c73a767ac67428142066d74b3e056a1ff16 (diff) |
nft-qos: fix monitor doesn't work when firstboot
Signed-off-by: Rosy Song <rosysong@rosinson.com>
Diffstat (limited to 'net/nft-qos/files')
-rw-r--r-- | net/nft-qos/files/nft-qos-monitor.hotplug | 12 |
1 files changed, 10 insertions, 2 deletions
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 |