sqm-hotplug 262 B

123456789101112
  1. #!/bin/sh
  2. [ -n "$DEVICE" ] || exit 0
  3. restart_sqm() {
  4. /usr/lib/sqm/run.sh stop ${DEVICE}
  5. /usr/lib/sqm/run.sh start ${DEVICE}
  6. }
  7. [ "$ACTION" = ifup ] && /etc/init.d/sqm enabled && restart_sqm
  8. [ "$ACTION" = ifdown ] && /usr/lib/sqm/run.sh stop ${DEVICE}