aboutsummaryrefslogtreecommitdiffstats
path: root/package
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
commit9cd15e51d7aef62864adf4f3c615b569bc1f38f8 (patch)
treeacc797447bea593077866b2a197add2a207d3347 /package
parent38fddf0082f7d5f90c59333cf2d760025c97d552 (diff)
downloadupstream-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
Diffstat (limited to 'package')
-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 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"
}