diff options
author | Felix Fietkau <nbd@openwrt.org> | 2007-11-07 13:24:10 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2007-11-07 13:24:10 +0000 |
commit | f77a9849c03c30784e59f4c2a03a51263954a89a (patch) | |
tree | add1be472eaad2e32cd7bf051cd0501c2051a7c6 /package/ppp/files/ppp.sh | |
parent | 5bc6d1c39e6541fefaf357946500f1c9bca03fa5 (diff) | |
download | upstream-f77a9849c03c30784e59f4c2a03a51263954a89a.tar.gz upstream-f77a9849c03c30784e59f4c2a03a51263954a89a.tar.bz2 upstream-f77a9849c03c30784e59f4c2a03a51263954a89a.zip |
add ppp ipv6 patch by farnz (from #2525)
SVN-Revision: 9508
Diffstat (limited to 'package/ppp/files/ppp.sh')
-rw-r--r-- | package/ppp/files/ppp.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/package/ppp/files/ppp.sh b/package/ppp/files/ppp.sh index 5ca1cf9c7d..339b4e73e8 100644 --- a/package/ppp/files/ppp.sh +++ b/package/ppp/files/ppp.sh @@ -37,6 +37,10 @@ start_pppd() { config_get demand "$cfg" demand [ -n "$demand" ] && echo "nameserver 1.1.1.1" > /tmp/resolv.conf.auto + + config_get_bool ipv6 "$cfg" ipv6 0 + [ "$ipv6" -eq 1 ] && ipv6="+ipv6" || ipv6="" + /usr/sbin/pppd "$@" \ ${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}} \ ${demand:+precompiled-active-filter /etc/ppp/filter demand idle }${demand:-persist} \ @@ -48,6 +52,7 @@ start_pppd() { ipparam "$cfg" \ ${connect:+connect "$connect"} \ ${disconnect:+disconnect "$disconnect"} \ + ${ipv6} \ ${pppd_options} lock -u "/var/lock/ppp-${cfg}" |