summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouke Witteveen <j.witteveen@gmail.com>2012-09-15 15:56:04 +0200
committerJouke Witteveen <j.witteveen@gmail.com>2012-09-15 16:08:08 +0200
commit5e1acbdb00f38363d05845c9393d7c789fe9f598 (patch)
treee6b326b051cf270a68ed3470d753a91159597ed4
parentf98469bcd24b8f4aa8a65d5728fe737b132ae310 (diff)
downloadnetctl-5e1acbdb00f38363d05845c9393d7c789fe9f598.tar.gz
netctl-5e1acbdb00f38363d05845c9393d7c789fe9f598.tar.xz
IPv6 support for PPPoE connections (FS#31380)
This fixes netcfg's share of FS#31380. Proposed by Gala Dragos.
-rw-r--r--docs/examples/pppoe2
-rw-r--r--src/connections/pppoe1
2 files changed, 3 insertions, 0 deletions
diff --git a/docs/examples/pppoe b/docs/examples/pppoe
index 2f50029..c11d125 100644
--- a/docs/examples/pppoe
+++ b/docs/examples/pppoe
@@ -29,3 +29,5 @@ CONNECTION_MODE='persist'
#PPPOE_SESSION=''
# Only connect to specified MAC address
#PPPOE_MAC=''
+# Enable IPv6 support
+#PPPOE_IP6='yes'
diff --git a/src/connections/pppoe b/src/connections/pppoe
index 65a162d..17fe42d 100644
--- a/src/connections/pppoe
+++ b/src/connections/pppoe
@@ -43,6 +43,7 @@ pppoe_up() {
[[ -n ${PPPOE_AC} ]] && echo "rp_pppoe_ac $(_quotestring "${PPPOE_AC}")" >> "${cfg}"
[[ -n ${PPPOE_SESSION} ]] && echo "rp_pppoe_sess $(_quotestring "${PPPOE_SESSION}")" >> "${cfg}"
[[ -n ${PPPOE_MAC} ]] && echo "pppoe-mac $(_quotestring "${PPPOE_MAC}")" >> "${cfg}"
+ [[ ${PPPOE_IP6} == yes ]] && echo "+ipv6" >> "${cfg}"
/sbin/ip link set dev "${INTERFACE}" up
/usr/sbin/pppd file "${cfg}"