summaryrefslogtreecommitdiffhomepage
path: root/proto/netifd-proto.sh
diff options
context:
space:
mode:
Diffstat (limited to 'proto/netifd-proto.sh')
-rwxr-xr-xproto/netifd-proto.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/proto/netifd-proto.sh b/proto/netifd-proto.sh
index 9aace59..93bf37a 100755
--- a/proto/netifd-proto.sh
+++ b/proto/netifd-proto.sh
@@ -29,6 +29,7 @@ add_default_handler() {
proto="$1"
cmd="$2"
data="$3"
+ifname="$4"
case "$cmd" in
dump)
@@ -54,8 +55,8 @@ case "$cmd" in
[[ "$proto" == "$1" ]] || return 0
case "$cmd" in
- setup) eval "$1_setup \"\$data\"" ;;
- teardown) eval "$1_teardown \"\$data\"" ;;
+ setup) eval "$1_setup \"\$data\" \"\$ifname\"" ;;
+ teardown) eval "$1_teardown \"\$data\" \"\$ifname\"" ;;
*) return 1 ;;
esac
}