summaryrefslogtreecommitdiffhomepage
path: root/dummy/proto
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-21 01:44:26 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-21 01:44:26 +0200
commit14f7651a6e61ccd870be78dd6b303057ea982414 (patch)
tree1aae026f8806f4d89d4c0291e15fc7eea402a14d /dummy/proto
parent31e8b6e9a4c0db86d27f6bdb21678bb48735a8a1 (diff)
proto-shell: allow protocol handlers to add interface error messages and block interface restart
Diffstat (limited to 'dummy/proto')
-rwxr-xr-xdummy/proto/ppp.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/dummy/proto/ppp.sh b/dummy/proto/ppp.sh
index f78933c..6f5dfcc 100755
--- a/dummy/proto/ppp.sh
+++ b/dummy/proto/ppp.sh
@@ -47,6 +47,10 @@ pppoe_setup() {
}
pppoe_teardown() {
+ [ "$ERROR" = 9 ] && {
+ proto_notify_error "$interface" PROCESS_KILLED
+ proto_block_restart "$interface"
+ }
proto_kill_command "$interface"
return
}