X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=dummy%2Fnetifd-proto.sh;h=6182ce1471b938415b5dd92e0cfceedf9d8bcf18;hp=9fc9cab84c693c629462412026d4a4c47b55ecb9;hb=cb0aeee156725940b4123bd828a831e96cae012f;hpb=547d96cd6d1bdf3624711b08491ca7fce6b4b0a3 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