Date: Saturday, September 15, 2012 @ 17:48:45 Author: thomas Revision: 166696
ppp: Add support for ipv6-up.d and ipv6-down.d, add a script to enable autoconfiguration for ppp links Added: ppp/trunk/ipv6-down ppp/trunk/ipv6-up ppp/trunk/ipv6-up.d.iface-config.sh Modified: ppp/trunk/PKGBUILD ppp/trunk/ip-down ---------------------------+ PKGBUILD | 15 +++++++++++++-- ip-down | 2 +- ipv6-down | 12 ++++++++++++ ipv6-up | 12 ++++++++++++ ipv6-up.d.iface-config.sh | 4 ++++ 5 files changed, 42 insertions(+), 3 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2012-09-15 21:36:54 UTC (rev 166695) +++ PKGBUILD 2012-09-15 21:48:45 UTC (rev 166696) @@ -2,7 +2,7 @@ # Maintainer: Thomas Baechler <[email protected]> pkgname=ppp pkgver=2.4.5 -pkgrel=4 +pkgrel=5 pkgdesc="A daemon which implements the Point-to-Point Protocol for dial-up networking" arch=(i686 x86_64) url="http://www.samba.org/ppp/" @@ -21,6 +21,9 @@ ip-down ip-up.d.dns.sh ip-down.d.dns.sh + ipv6-up + ipv6-down + ipv6-up.d.iface-config.sh ppp.systemd) md5sums=('4621bc56167b6953ec4071043fe0ec57' '7a9259a8f038073eeea7e4552ff1849f' @@ -30,9 +33,12 @@ '86cdaf133f7a79fb464f02d83afc7734' '44cc662ba9aa61dd9add3ddd4c5ded57' 'e4beb16ed600b61336d50b2bd2df7cd5' - '2fa0671f40711e69194ccf60979f8b33' + '529b924f644f80cf30d72a966abc7419' '4a074d74c29625b254a1db720cb87b99' '8d1be5af8e46393ba6eb273377831e38' + '4cbd0a9af01c27067450ec7d3f5fa673' + 'b75c2fbc4afa9f2d8108b680c88c7036' + '9dde53aa5a931ebe1c7e3469199777c5' 'fafead5c9d66d0574e6f0a2e5f4d4631') build() { @@ -70,6 +76,11 @@ install -d -m755 "${pkgdir}/etc/ppp/ip-down.d" install -m755 ../ip-up.d.dns.sh "${pkgdir}/etc/ppp/ip-up.d/00-dns.sh" install -m755 ../ip-down.d.dns.sh "${pkgdir}/etc/ppp/ip-down.d/00-dns.sh" + install -D -m755 ../ipv6-up "${pkgdir}/etc/ppp/ipv6-up" + install -D -m755 ../ipv6-down "${pkgdir}/etc/ppp/ipv6-down" + install -d -m755 "${pkgdir}/etc/ppp/ipv6-up.d" + install -d -m755 "${pkgdir}/etc/ppp/ipv6-down.d" + install -m755 ../ipv6-up.d.iface-config.sh "${pkgdir}/etc/ppp/ipv6-up.d/00-iface-config.sh" install -D -m755 ../pon "${pkgdir}/usr/bin/pon" install -D -m755 ../poff "${pkgdir}/usr/bin/poff" install -D -m755 ../plog "${pkgdir}/usr/sbin/plog" Modified: ip-down =================================================================== --- ip-down 2012-09-15 21:36:54 UTC (rev 166695) +++ ip-down 2012-09-15 21:48:45 UTC (rev 166696) @@ -3,7 +3,7 @@ # This script is run by pppd after the connection has ended. # -# Execute all scripts in /etc/ppp/ip-up.d/ +# Execute all scripts in /etc/ppp/ip-down.d/ for ipdown in /etc/ppp/ip-down.d/*.sh; do if [ -x $ipdown ]; then # Parameters: interface-name tty-device speed local-IP-address remote-IP-address ipparam Added: ipv6-down =================================================================== --- ipv6-down (rev 0) +++ ipv6-down 2012-09-15 21:48:45 UTC (rev 166696) @@ -0,0 +1,12 @@ +#!/bin/sh +# +# This script is run by pppd after the connection has ended. +# + +# Execute all scripts in /etc/ppp/ipv6-down.d/ +for ipdown in /etc/ppp/ipv6-down.d/*.sh; do + if [ -x $ipdown ]; then + # Parameters: interface-name tty-device speed local-link-local-address remote-link-local-address ipparam + $ipdown "$@" + fi +done Added: ipv6-up =================================================================== --- ipv6-up (rev 0) +++ ipv6-up 2012-09-15 21:48:45 UTC (rev 166696) @@ -0,0 +1,12 @@ +#!/bin/sh +# +# This script is run by pppd when there's a successful ppp connection. +# + +# Execute all scripts in /etc/ppp/ipv6-up.d/ +for ipup in /etc/ppp/ipv6-up.d/*.sh; do + if [ -x $ipup ]; then + # Parameters: interface-name tty-device speed local-link-local-address remote-link-local-address ipparam + $ipup "$@" + fi +done Added: ipv6-up.d.iface-config.sh =================================================================== --- ipv6-up.d.iface-config.sh (rev 0) +++ ipv6-up.d.iface-config.sh 2012-09-15 21:48:45 UTC (rev 166696) @@ -0,0 +1,4 @@ +#!/bin/sh + +echo 0 > /proc/sys/net/ipv6/conf/$1/use_tempaddr +echo 2 > /proc/sys/net/ipv6/conf/$1/accept_ra
