You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
410 B

  1. #!/bin/sh
  2. #
  3. # Copyright 2018 rosysong@rosinson.com
  4. #
  5. . /lib/nft-qos/monitor.sh
  6. logger -t nft-qos-monitor "ACTION=$ACTION, MACADDR=$MACADDR, IPADDR=$IPADDR, HOSTNAME=$HOSTNAME"
  7. case "$ACTION" in
  8. add | update)
  9. qosdef_init_env
  10. qosdef_init_monitor
  11. qosdef_monitor_add $MACADDR $IPADDR $HOSTNAME
  12. ;;
  13. remove)
  14. qosdef_init_env
  15. qosdef_init_monitor
  16. qosdef_monitor_del $MACADDR $IPADDR $HOSTNAME
  17. ;;
  18. esac