Module Name: src
Committed By: jmcneill
Date: Fri Apr 16 13:47:50 UTC 2010
Modified Files:
src/usr.sbin/ifwatchd: ifwatchd.8
Log Message:
add examples for setting ipv6 default routes in ip-up/ip-down scripts
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/usr.sbin/ifwatchd/ifwatchd.8
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/ifwatchd/ifwatchd.8
diff -u src/usr.sbin/ifwatchd/ifwatchd.8:1.25 src/usr.sbin/ifwatchd/ifwatchd.8:1.26
--- src/usr.sbin/ifwatchd/ifwatchd.8:1.25 Mon Mar 9 19:24:33 2009
+++ src/usr.sbin/ifwatchd/ifwatchd.8 Fri Apr 16 13:47:50 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: ifwatchd.8,v 1.25 2009/03/09 19:24:33 joerg Exp $
+.\" $NetBSD: ifwatchd.8,v 1.26 2010/04/16 13:47:50 jmcneill Exp $
.\"
.\" Copyright (c) 2001-2003 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd November 4, 2004
+.Dd April 16, 2010
.Dt IFWATCHD 8
.Os
.Sh NAME
@@ -142,6 +142,7 @@
.Bd -literal -offset indent
#! /bin/sh
/sbin/route add default $5
+/sbin/route add -inet6 default fe80::2 -iface ifp $1
.Ed
.Pp
As described below the fifth command line parameter will contain
@@ -150,6 +151,7 @@
.Bd -literal -offset indent
#! /bin/sh
/sbin/route delete default $5
+/sbin/route delete -inet6 default fe80::2
.Ed
.Pp
Note that this is not a good idea if you have pppoe0 configured to