summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-05-03 19:59:07 +0200
committerDaniil Baturin <daniil@baturin.org>2015-08-12 03:41:24 +0200
commit8ce9db563ae8efd70324179998875e9dad90c4e6 (patch)
tree22b2c807d49c2193705cd241211a8207bcb3fd55 /templates
parentfe279adfc4f7dea67d7055ef6d138a05fee9b513 (diff)
downloadvyatta-cfg-system-8ce9db563ae8efd70324179998875e9dad90c4e6.tar.gz
vyatta-cfg-system-8ce9db563ae8efd70324179998875e9dad90c4e6.zip
Bug #541: load l2tp_ip6 module so L2TPv3 over IPv6 can work.
Diffstat (limited to 'templates')
-rw-r--r--templates/interfaces/l2tpv3/node.def10
1 files changed, 8 insertions, 2 deletions
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: