ppp: block restart of interfaces if pppd refused the command line options
[openwrt.git] / package / ppp / files / ppp.sh
index 7d475a9..98099db 100755 (executable)
@@ -72,6 +72,10 @@ ppp_generic_teardown() {
                        proto_notify_error "$interface" AUTH_FAILED
                        proto_block_restart "$interface"
                ;;
+               2)
+                       proto_notify_error "$interface" INVALID_OPTIONS
+                       proto_block_restart "$interface"
+               ;;
        esac
        proto_kill_command "$interface"
 }