diff options
-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: |