projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
proto-shell: allow running protocols without proto_task.
[project/netifd.git]
/
scripts
/
netifd-proto.sh
diff --git
a/scripts/netifd-proto.sh
b/scripts/netifd-proto.sh
index
ce60cd0
..
447f0f6
100644
(file)
--- a/
scripts/netifd-proto.sh
+++ b/
scripts/netifd-proto.sh
@@
-362,6
+362,7
@@
init_proto() {
dump)
add_protocol() {
no_device=0
dump)
add_protocol() {
no_device=0
+ no_proto_task=0
available=0
renew_handler=0
available=0
renew_handler=0
@@
-373,8
+374,10
@@
init_proto() {
eval "proto_$1_init_config"
json_close_array
json_add_boolean no-device "$no_device"
eval "proto_$1_init_config"
json_close_array
json_add_boolean no-device "$no_device"
+ json_add_boolean no-proto-task "$no_proto_task"
json_add_boolean available "$available"
json_add_boolean renew-handler "$renew_handler"
json_add_boolean available "$available"
json_add_boolean renew-handler "$renew_handler"
+ json_add_boolean lasterror "$lasterror"
json_dump
}
;;
json_dump
}
;;