2006-10-06 17:38:48 +00:00
|
|
|
#!/bin/sh /etc/rc.common
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
|
2006-10-15 21:03:30 +00:00
|
|
|
START=50
|
2014-07-18 11:25:07 +00:00
|
|
|
USE_PROCD=1
|
2006-10-15 21:03:30 +00:00
|
|
|
|
2014-07-18 11:25:07 +00:00
|
|
|
validate_qos_section()
|
|
|
|
{
|
|
|
|
uci_validate_section qos interface "${1}" \
|
|
|
|
'enabled:bool' \
|
|
|
|
'upload:uinteger' \
|
|
|
|
'download:uinteger'
|
2006-10-06 17:38:48 +00:00
|
|
|
}
|
|
|
|
|
2014-07-18 11:25:07 +00:00
|
|
|
service_triggers()
|
|
|
|
{
|
|
|
|
procd_add_reload_trigger "qos"
|
|
|
|
procd_add_validation validate_qos_section
|
2006-10-15 21:03:30 +00:00
|
|
|
qos-start
|
2006-10-06 17:38:48 +00:00
|
|
|
}
|
|
|
|
|
2014-07-18 11:25:07 +00:00
|
|
|
start_service() {
|
|
|
|
qos-start
|
|
|
|
}
|
|
|
|
|
|
|
|
reload_service() {
|
|
|
|
qos-start
|
2006-10-06 17:38:48 +00:00
|
|
|
}
|