diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-05-03 19:59:07 +0200 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-05-03 19:59:07 +0200 |
commit | 64e4976402d1070b2d00a257924bc5445073733c (patch) | |
tree | c11e64dc46aab503b1102ccc5fd1a5862d80619a /templates/interfaces/l2tpv3/node.def | |
parent | 58b96681df6f261b8248d619ddca229989d4896f (diff) | |
download | vyatta-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/node.def')
-rw-r--r-- | templates/interfaces/l2tpv3/node.def | 10 |
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: |