freebsd-ports/net/mpd-l2tp-ipv6pd-client/scripts/linkdown.sh.in
Hajimu UMEMOTO 7f5b4d4612 New port - mpd-l2tp-ipv6pd-client
A sample implementaiton set of "L2TP-IPv6PD" client using mpd.
"OCN IPv6", provided by NTT Communications Corp, was the first
commercial tunnel service using "L2TP-IPv6PD".

NOTE: This port runs on FreeBSD 6.3 and later.  If you want to run it
on FreeBSD 6.2, you need to apply following diff to your ng_ksocket:

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netgraph/ng_ksocket.c.diff?r1=1.59&r2=1.60

WWW: http://www.ocn.v6.ntt.net/ocnipv6/pdf/ocnipv6uni_ver1.0.pdf
2008-01-01 11:52:51 +00:00

15 lines
186 B
Bash

#!/bin/sh
iface=$1
family=$2
case ${family} in
inet6)
%%PREFIX%%/%%CONF_DIR%%/dhcp6c_pd.sh stop ${iface}
case ${iface} in
*)
/sbin/route delete -inet6 default
;;
esac
;;
esac