Signed-off-by: Felix Fietkau <nbd@nbd.name>
. $IPKG_INSTROOT/usr/share/libubox/jshn.sh
+PROCD_RELOAD_DELAY=1000
_PROCD_SERVICE=
_procd_call() {
esac
}
+_procd_add_timeout() {
+ [ "$PROCD_RELOAD_DELAY" -gt 0 ] && json_add_int "" "$PROCD_RELOAD_DELAY"
+ return 0
+}
+
_procd_add_interface_trigger() {
json_add_array
_procd_add_array_data "$1"
json_close_array
json_close_array
+
+ _procd_add_timeout
}
_procd_add_reload_interface_trigger() {
json_close_array
json_close_array
+
+ _procd_add_timeout
}
_procd_add_raw_trigger() {