X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=blobdiff_plain;f=dummy%2Fnetifd-proto.sh;fp=dummy%2Fnetifd-proto.sh;h=d8b540dd883c57edc77c4e4937aa08b6c637bc65;hp=ae5a34672571bfb46aa161ace361571c301e8ba2;hb=570302d28d18d47f095f864be161045e169b5941;hpb=3b8673edadc8ce6d1d90c12e6b8e57eeb291c521 diff --git a/dummy/netifd-proto.sh b/dummy/netifd-proto.sh index ae5a346..d8b540d 100755 --- a/dummy/netifd-proto.sh +++ b/dummy/netifd-proto.sh @@ -334,6 +334,7 @@ proto_set_available() { proto_add_host_dependency() { local interface="$1" local host="$2" + local ifname="$3" # execute in subshell to not taint callers env # see tickets #11046, #11545, #11570 @@ -341,6 +342,7 @@ proto_add_host_dependency() { json_init json_add_int action 6 json_add_string host "$host" + [ -n "$ifname" ] && json_add_string ifname "$ifname" _proto_notify "$interface" -S ) }