]> git.ipfire.org Git - people/stevee/network.git/commitdiff
ppp: Enable IPv6 CP by default.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Apr 2013 13:48:18 +0000 (15:48 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 26 Apr 2013 13:48:18 +0000 (15:48 +0200)
functions.ppp

index c041389a2e97e582002ab292fbd484599b9f44b0..1b7d9a30e223a394fd2d7b6591294e6aa289c593 100644 (file)
@@ -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}