diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-06-10 12:12:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-06-10 12:12:10 +0000 |
commit | 9cd15e51d7aef62864adf4f3c615b569bc1f38f8 (patch) | |
tree | acc797447bea593077866b2a197add2a207d3347 | |
parent | 38fddf0082f7d5f90c59333cf2d760025c97d552 (diff) | |
download | upstream-9cd15e51d7aef62864adf4f3c615b569bc1f38f8.tar.gz upstream-9cd15e51d7aef62864adf4f3c615b569bc1f38f8.tar.bz2 upstream-9cd15e51d7aef62864adf4f3c615b569bc1f38f8.zip |
ppp: block restart of interfaces if pppd refused the command line options
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32160 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rwxr-xr-x | package/ppp/files/ppp.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh index 7d475a985b..98099dba54 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" } |