aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYousong Zhou <yszhou4tech@gmail.com>2015-08-11 11:33:28 +0800
committerYousong Zhou <yszhou4tech@gmail.com>2015-08-14 12:16:27 +0800
commit071b197304c82cc76595eb6a4ea7d68099ee8027 (patch)
tree3a8e5b9730337f0e9a26efd278607d0632c8c5e4
parent4a51d6001e21165c6fb3a3fe8cfa050e620ec1a7 (diff)
xl2tpd: remove check for $ERROR.
L2TP with xl2tpd has no proto_task in the context of netifd and because of this there is no valid $ERROR to check for when doing tearing down. Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r--net/xl2tpd/files/l2tp.sh11
1 files changed, 0 insertions, 11 deletions
diff --git a/net/xl2tpd/files/l2tp.sh b/net/xl2tpd/files/l2tp.sh
index afb3a51c1..ec4ee69ac 100644
--- a/net/xl2tpd/files/l2tp.sh
+++ b/net/xl2tpd/files/l2tp.sh
@@ -103,17 +103,6 @@ proto_l2tp_teardown() {
local optfile="/tmp/l2tp/options.${interface}"
rm -f ${optfile}
- case "$ERROR" in
- 11|19)
- proto_notify_error "$interface" AUTH_FAILED
- proto_block_restart "$interface"
- ;;
- 2)
- proto_notify_error "$interface" INVALID_OPTIONS
- proto_block_restart "$interface"
- ;;
- esac
-
if [ -p /var/run/xl2tpd/l2tp-control ]; then
xl2tpd-control remove l2tp-${interface} || {
echo "xl2tpd-control: Remove l2tp-$interface failed" >&2