diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-07-18 11:25:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-07-18 11:25:07 +0000 |
commit | 67d6d6034b90638be1373d81372c4648b1b7ff14 (patch) | |
tree | 12e202e1242d70575162e0ad8a46a8c15923e36f /package/network/config | |
parent | e1acaa4af2caf1d31ad02c987a985602cfcae0e0 (diff) | |
download | upstream-67d6d6034b90638be1373d81372c4648b1b7ff14.tar.gz upstream-67d6d6034b90638be1373d81372c4648b1b7ff14.tar.bz2 upstream-67d6d6034b90638be1373d81372c4648b1b7ff14.zip |
qos-scripts: convert to procd
Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41730 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/network/config')
-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 } |