proto-shell: allow protocol handlers to add interface error messages and block interf...
[project/netifd.git] / dummy / proto / ppp.sh
index f78933c..6f5dfcc 100755 (executable)
@@ -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
 }