summaryrefslogtreecommitdiffhomepage
path: root/dummy/netifd-proto.sh
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2013-05-13 10:55:01 +0200
committerSteven Barth <steven@midlink.org>2013-05-13 10:55:01 +0200
commit570302d28d18d47f095f864be161045e169b5941 (patch)
tree186fc425d49a6fcc25075d4d517df43f466248ab /dummy/netifd-proto.sh
parent3b8673edadc8ce6d1d90c12e6b8e57eeb291c521 (diff)
Add support for IPv6 and interface target-routes & dependencies
Signed-off-by: Steven Barth <steven@midlink.org>
Diffstat (limited to 'dummy/netifd-proto.sh')
-rwxr-xr-xdummy/netifd-proto.sh2
1 files changed, 2 insertions, 0 deletions
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
)
}