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.

13 lines
360 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) qosdef_init_env && qosdef_monitor_add $MACADDR $IPADDR $HOSTNAME;;
  9. remove) qosdef_init_env && qosdef_monitor_del $MACADDR $IPADDR $HOSTNAME;;
  10. esac