Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/ifwatchd add examples for setting ipv6 default rout...
details: https://anonhg.NetBSD.org/src/rev/d430517c54ea
branches: trunk
changeset: 754015:d430517c54ea
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Fri Apr 16 13:47:50 2010 +0000
description:
add examples for setting ipv6 default routes in ip-up/ip-down scripts
diffstat:
usr.sbin/ifwatchd/ifwatchd.8 | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 283e960e4b51 -r d430517c54ea usr.sbin/ifwatchd/ifwatchd.8
--- a/usr.sbin/ifwatchd/ifwatchd.8 Fri Apr 16 13:44:49 2010 +0000
+++ b/usr.sbin/ifwatchd/ifwatchd.8 Fri Apr 16 13:47:50 2010 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index