From e1a58c09b43f6deaf03e2dad4cee246e62a8bd63 Mon Sep 17 00:00:00 2001 From: Yousong Zhou Date: Tue, 11 Aug 2015 11:45:23 +0800 Subject: [PATCH] xl2tpd: tweak getting value of mtu config option. Signed-off-by: Yousong Zhou --- net/xl2tpd/files/l2tp.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/net/xl2tpd/files/l2tp.sh b/net/xl2tpd/files/l2tp.sh index ec4ee69ac..74c956c21 100644 --- a/net/xl2tpd/files/l2tp.sh +++ b/net/xl2tpd/files/l2tp.sh @@ -54,8 +54,8 @@ proto_l2tp_setup() { done fi - local ipv6 demand keepalive username password pppd_options - json_get_vars ipv6 demand keepalive username password pppd_options + local ipv6 demand keepalive username password pppd_options mtu + json_get_vars ipv6 demand keepalive username password pppd_options mtu [ "$ipv6" = 1 ] || ipv6="" if [ "${demand:-0}" -gt 0 ]; then demand="precompiled-active-filter /etc/ppp/filter demand idle $demand" @@ -63,9 +63,6 @@ proto_l2tp_setup() { demand="persist" fi - local mtu - [ -n "$mtu" ] || json_get_var mtu mtu - local interval="${keepalive##*[, ]}" [ "$interval" != "$keepalive" ] || interval=5