Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc Add rc.d support for ifwatchd (used to run ip-up/ip-down...



details:   https://anonhg.NetBSD.org/src/rev/83c54b2df16e
branches:  trunk
changeset: 519065:83c54b2df16e
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Dec 10 16:53:06 2001 +0000

description:
Add rc.d support for ifwatchd (used to run ip-up/ip-down scripts for
in-kernel pppoe interfaces).

diffstat:

 etc/defaults/rc.conf |   5 ++++-
 etc/rc.d/Makefile    |   4 ++--
 etc/rc.d/ifwatchd    |  17 +++++++++++++++++
 3 files changed, 23 insertions(+), 3 deletions(-)

diffs (56 lines):

diff -r c32aac9441a5 -r 83c54b2df16e etc/defaults/rc.conf
--- a/etc/defaults/rc.conf      Mon Dec 10 15:04:51 2001 +0000
+++ b/etc/defaults/rc.conf      Mon Dec 10 16:53:06 2001 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: rc.conf,v 1.24 2001/10/29 23:25:00 augustss Exp $
+#      $NetBSD: rc.conf,v 1.25 2001/12/10 16:53:06 martin Exp $
 #
 # /etc/defaults/rc.conf --
 #      default configuration of /etc/rc.conf
@@ -117,6 +117,9 @@
 # list, add others here manually.
 # force_down_interfaces=""
 
+ifwatchd=NO    # execute up/down scripts for in-kernel PPPoE interfaces
+       ifwatchd_flags="-u /etc/ppp/ip-up -d /etc/ppp/ip-down pppoe0"
+
 # ALTQ configuration/monitoring daemon
 altqd=NO               altqd_flags=""
 
diff -r c32aac9441a5 -r 83c54b2df16e etc/rc.d/Makefile
--- a/etc/rc.d/Makefile Mon Dec 10 15:04:51 2001 +0000
+++ b/etc/rc.d/Makefile Mon Dec 10 16:53:06 2001 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.23 2001/10/29 23:25:01 augustss Exp $
+# $NetBSD: Makefile,v 1.24 2001/12/10 16:53:06 martin Exp $
 
 .include <bsd.own.mk>
 
 FILES= DAEMON LOGIN NETWORK SERVERS accounting altqd amd apmd bootparams \
        bootconf.sh ccd cleartmp cron dhclient dhcpd dhcrelay dmesg \
-       downinterfaces fsck inetd ipfilter ipmon ipnat ipsec isdnd kdc \
+       downinterfaces fsck ifwatchd inetd ipfilter ipmon ipnat ipsec isdnd kdc \
        ldconfig lkm1 lkm2 lkm3 local lpd mopd motd mountall mountcritlocal \
        mountcritremote mountd moused mrouted named ndbootd network newsyslog \
        nfsd nfslocking ntpd ntpdate rpcbind poffd postfix ppp pwcheck racoon \
diff -r c32aac9441a5 -r 83c54b2df16e etc/rc.d/ifwatchd
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/etc/rc.d/ifwatchd Mon Dec 10 16:53:06 2001 +0000
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD: ifwatchd,v 1.1 2001/12/10 16:53:07 martin Exp $
+#
+
+# PROVIDE: ifwatchd
+# REQUIRE: mountcritremote network
+
+. /etc/rc.subr
+
+name="ifwatchd"
+rcvar=$name
+command="/usr/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"
+



Home | Main Index | Thread Index | Old Index