qos 391 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh /etc/rc.common
  2. # Copyright (C) 2006 OpenWrt.org
  3. START=50
  4. USE_PROCD=1
  5. validate_qos_section()
  6. {
  7. uci_validate_section qos interface "${1}" \
  8. 'enabled:bool' \
  9. 'upload:uinteger' \
  10. 'download:uinteger'
  11. }
  12. service_triggers()
  13. {
  14. procd_add_reload_trigger "qos"
  15. procd_add_validation validate_qos_section
  16. qos-start
  17. }
  18. start_service() {
  19. qos-start
  20. }
  21. reload_service() {
  22. qos-start
  23. }