sqm-ifup 312 B

12345678910111213
  1. #!/bin/sh
  2. [ -n "$IFACE" ] || exit 1
  3. . /etc/sqm/sqm.conf
  4. if [ -f /etc/sqm/${IFACE}.iface.conf ]; then
  5. [ -f /etc/sqm/default.conf ] && . /etc/sqm/default.conf
  6. . /etc/sqm/${IFACE}.iface.conf
  7. [ -f ${SQM_STATE_DIR}/$IFACE.state ] && ( . ${SQM_LIB_DIR}/stop-sqm )
  8. ( . ${SQM_LIB_DIR}/start-sqm )
  9. fi