mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-23 23:42:43 +00:00
qos-scripts: convert to procd
Signed-off-by: John Crispin <blogic@openwrt.org> Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 41730
This commit is contained in:
parent
48494962d1
commit
4ecb9289ef
@ -2,15 +2,27 @@
|
|||||||
# Copyright (C) 2006 OpenWrt.org
|
# Copyright (C) 2006 OpenWrt.org
|
||||||
|
|
||||||
START=50
|
START=50
|
||||||
|
USE_PROCD=1
|
||||||
|
|
||||||
boot() {
|
validate_qos_section()
|
||||||
/usr/lib/qos/generate.sh firewall | sh
|
{
|
||||||
|
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
|
qos-start
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
start_service() {
|
||||||
qos-stop
|
qos-start
|
||||||
|
}
|
||||||
|
|
||||||
|
reload_service() {
|
||||||
|
qos-start
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user