diff options
Diffstat (limited to 'package/network')
-rwxr-xr-x | package/network/config/qos-scripts/files/etc/init.d/qos | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/package/network/config/qos-scripts/files/etc/init.d/qos b/package/network/config/qos-scripts/files/etc/init.d/qos index 3f711155ee..712d906f03 100755 --- a/package/network/config/qos-scripts/files/etc/init.d/qos +++ b/package/network/config/qos-scripts/files/etc/init.d/qos @@ -2,15 +2,27 @@ # Copyright (C) 2006 OpenWrt.org START=50 +USE_PROCD=1 -boot() { - /usr/lib/qos/generate.sh firewall | sh +validate_qos_section() +{ + uci_validate_section qos interface "${1}" \ + 'enabled:bool' \ + 'upload:uinteger' \ + 'download:uinteger' } -start() { +service_triggers() +{ + procd_add_reload_trigger "qos" + procd_add_validation validate_qos_section qos-start } -stop() { - qos-stop +start_service() { + qos-start +} + +reload_service() { + qos-start } |