projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add support for killing running proto-shell tasks with an arbitrary signal and waitin...
[project/netifd.git]
/
dummy
/
netifd-proto.sh
diff --git
a/dummy/netifd-proto.sh
b/dummy/netifd-proto.sh
index
9fc9cab
..
6182ce1
100755
(executable)
--- a/
dummy/netifd-proto.sh
+++ b/
dummy/netifd-proto.sh
@@
-149,6
+149,15
@@
proto_run_command() {
_proto_notify "$interface"
}
+proto_kill_command() {
+ local interface="$1"; shift
+
+ json_init
+ json_add_int action 2
+ [ -n "$1" ] && json_add_int signal "$1"
+ _proto_notify "$interface"
+}
+
init_proto() {
proto="$1"; shift
cmd="$1"; shift