summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-06-10 12:12:10 +0000
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-06-10 12:12:10 +0000
commit70f4fb23cda0b83e651be955c7ae247adece5d3d (patch)
treeacc797447bea593077866b2a197add2a207d3347 /package
parentc7a15aa54a7aa025a65e14a27a75fa502c3b6c6f (diff)
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"
}