summaryrefslogtreecommitdiff
path: root/package/ppp
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-06-10 12:12:10 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-06-10 12:12:10 +0000
commit378773f143d465eb164928a62437605c3280028f (patch)
treeb0a514b35325b20d230e09b25df524a937886c4a /package/ppp
parentbfd06f261a6baa1ba60ae14b72a09667fcb345f3 (diff)
downloadmtk-20170518-378773f143d465eb164928a62437605c3280028f.zip
mtk-20170518-378773f143d465eb164928a62437605c3280028f.tar.gz
mtk-20170518-378773f143d465eb164928a62437605c3280028f.tar.bz2
ppp: block restart of interfaces if pppd refused the command line options
SVN-Revision: 32160
Diffstat (limited to 'package/ppp')
-rwxr-xr-xpackage/ppp/files/ppp.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh
index 7d475a9..98099db 100755
--- a/package/ppp/files/ppp.sh
+++ b/package/ppp/files/ppp.sh
@@ -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"
}