summaryrefslogtreecommitdiff
path: root/templates/interfaces/l2tpv3
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2015-05-03 19:59:07 +0200
committerDaniil Baturin <daniil@baturin.org>2015-05-03 19:59:07 +0200
commit64e4976402d1070b2d00a257924bc5445073733c (patch)
treec11e64dc46aab503b1102ccc5fd1a5862d80619a /templates/interfaces/l2tpv3
parent58b96681df6f261b8248d619ddca229989d4896f (diff)
downloadvyatta-cfg-system-64e4976402d1070b2d00a257924bc5445073733c.tar.gz
vyatta-cfg-system-64e4976402d1070b2d00a257924bc5445073733c.zip
Bug #541: load l2tp_ip6 module so L2TPv3 over IPv6 can work.
Diffstat (limited to 'templates/interfaces/l2tpv3')
-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: