From aadb3cd0c8293aaa3bcf85f6408ed45df4fbe6b4 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 26 Apr 2013 15:48:18 +0200 Subject: [PATCH] ppp: Enable IPv6 CP by default. --- functions.ppp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/functions.ppp b/functions.ppp index c041389a..1b7d9a30 100644 --- a/functions.ppp +++ b/functions.ppp @@ -206,6 +206,7 @@ function pppd_write_config() { local connect_cmd local default_asyncmap="true" local interface + local ipv6="true" local lcp_echo_failure=3 local lcp_echo_interval=20 local linkname @@ -241,6 +242,10 @@ function pppd_write_config() { --interface=*) interface=$(cli_get_val ${1}) ;; + # IPv6 + --ipv6=*) + ipv6="$(cli_get_val ${1})" + ;; # LCP echo failure. --lcr-echo-failure=*) lcr_echo_failure=$(cli_get_val ${1}) @@ -351,6 +356,15 @@ function pppd_write_config() { ) >> ${file} fi + # IPv6 + if enabled ipv6; then + ( + print "# IPv6 support" + print "+ipv6" + print + ) >> ${file} + fi + # MTU/MRU settings if isset mtu; then isset mru || mru=${mtu} -- 2.47.2