mirror of
https://github.com/novatiq/packages.git
synced 2026-04-30 15:38:40 +01:00
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>
This commit is contained in:
@@ -103,17 +103,6 @@ proto_l2tp_teardown() {
|
|||||||
local optfile="/tmp/l2tp/options.${interface}"
|
local optfile="/tmp/l2tp/options.${interface}"
|
||||||
|
|
||||||
rm -f ${optfile}
|
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
|
if [ -p /var/run/xl2tpd/l2tp-control ]; then
|
||||||
xl2tpd-control remove l2tp-${interface} || {
|
xl2tpd-control remove l2tp-${interface} || {
|
||||||
echo "xl2tpd-control: Remove l2tp-$interface failed" >&2
|
echo "xl2tpd-control: Remove l2tp-$interface failed" >&2
|
||||||
|
|||||||
Reference in New Issue
Block a user