summaryrefslogtreecommitdiffhomepage
path: root/dummy/netifd-proto.sh
diff options
context:
space:
mode:
Diffstat (limited to 'dummy/netifd-proto.sh')
-rwxr-xr-xdummy/netifd-proto.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/dummy/netifd-proto.sh b/dummy/netifd-proto.sh
index 9fc9cab..6182ce1 100755
--- 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