diff options
Diffstat (limited to 'dummy')
-rwxr-xr-x | dummy/netifd-proto.sh | 9 | ||||
-rwxr-xr-x | dummy/proto/ppp.sh | 1 |
2 files changed, 10 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 diff --git a/dummy/proto/ppp.sh b/dummy/proto/ppp.sh index 8673b98..837767b 100755 --- a/dummy/proto/ppp.sh +++ b/dummy/proto/ppp.sh @@ -47,6 +47,7 @@ pppoe_setup() { } pppoe_teardown() { + proto_kill_command "$interface" return } |