From 64e4976402d1070b2d00a257924bc5445073733c Mon Sep 17 00:00:00 2001 From: Daniil Baturin Date: Sun, 3 May 2015 19:59:07 +0200 Subject: Bug #541: load l2tp_ip6 module so L2TPv3 over IPv6 can work. --- templates/interfaces/l2tpv3/node.def | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'templates') diff --git a/templates/interfaces/l2tpv3/node.def b/templates/interfaces/l2tpv3/node.def index ccde1e22..fb3d1475 100644 --- a/templates/interfaces/l2tpv3/node.def +++ b/templates/interfaces/l2tpv3/node.def @@ -22,8 +22,14 @@ commit:expression: $VAR(./peer-session-id/) != "" ; \ begin: [ -d /sys/module/l2tp_eth ] || sudo modprobe l2tp_eth [ -d /sys/module/l2tp_netlink ] || sudo modprobe l2tp_netlink - if [ "$VAR(./encapsulation/@)" = "ip" ] && [ ! -d /sys/module/l2tp_ip ] ; then - sudo modprobe l2tp_ip + if [ "$VAR(./encapsulation/@)" = "ip" ]; then + if [ ! -d /sys/module/l2tp_ip ]; then + sudo modprobe l2tp_ip + fi + + if [ ! -d /sys/module/l2tp_ip6 ]; then + sudo modprobe l2tp_ip6 + fi fi create: -- cgit v1.2.3