summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-06-21 19:07:21 +0000
committerobrien <obrien@FreeBSD.org>2002-06-21 19:07:21 +0000
commitf91ef96f2fdd651d92ece23ff67cd80b27c4db41 (patch)
tree181b44e78f9c9d9f5840a8e0c5387984adf301ed /etc
parente2bd215de79a284658e76b57d17115b64046354b (diff)
parentee31175803e680649c9d3770f90b1c19c36f4740 (diff)
downloadFreeBSD-src-f91ef96f2fdd651d92ece23ff67cd80b27c4db41.zip
FreeBSD-src-f91ef96f2fdd651d92ece23ff67cd80b27c4db41.tar.gz
This commit was generated by cvs2svn to compensate for changes in r98576,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc.d/downinterfaces27
-rw-r--r--etc/rc.d/ifwatchd17
-rwxr-xr-xetc/rc.d/ipfs36
-rwxr-xr-xetc/rc.d/mixerctl26
-rwxr-xr-xetc/rc.d/ndbootd18
5 files changed, 124 insertions, 0 deletions
diff --git a/etc/rc.d/downinterfaces b/etc/rc.d/downinterfaces
new file mode 100644
index 0000000..6a5c943
--- /dev/null
+++ b/etc/rc.d/downinterfaces
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $NetBSD: downinterfaces,v 1.2 2001/09/04 20:40:40 martin Exp $
+#
+
+# PROVIDE: downinterfaces
+# KEYWORD: shutdown
+
+if [ "x$1" != "xstop" ]; then exit 0; fi
+
+. /etc/rc.conf
+
+tmp=`ifconfig -lu`
+iflist=""
+for int in $tmp; do
+ case $int in
+ pppoe*) iflist="$iflist $int"
+ ;;
+ esac
+done
+iflist="$iflist $force_down_interfaces"
+if [ "$iflist" = "" ] || [ "$iflist" = " " ]; then exit 0; fi
+
+echo "Shutting down interfaces:$iflist"
+for int in $iflist; do
+ ifconfig $int down
+done
diff --git a/etc/rc.d/ifwatchd b/etc/rc.d/ifwatchd
new file mode 100644
index 0000000..ec23ce2
--- /dev/null
+++ b/etc/rc.d/ifwatchd
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $NetBSD$
+#
+
+# PROVIDE: ifwatchd
+# REQUIRE: mountcritremote network
+
+. /etc/rc.subr
+
+name="ifwatchd"
+rcvar=$name
+command="/usr/sbin/${name}"
+
+load_rc_config $name
+run_rc_command "$1"
+
diff --git a/etc/rc.d/ipfs b/etc/rc.d/ipfs
new file mode 100755
index 0000000..0abdba0
--- /dev/null
+++ b/etc/rc.d/ipfs
@@ -0,0 +1,36 @@
+#!/bin/sh
+#
+# $NetBSD: ipfs,v 1.3 2002/02/11 13:55:42 lukem Exp $
+#
+
+# PROVIDE: ipfs
+# REQUIRE: ipnat mountcritremote
+# KEYWORD: shutdown
+
+. /etc/rc.subr
+
+name="ipfs"
+rcvar=$name
+start_cmd="ipfs_start"
+stop_cmd="ipfs_stop"
+
+ipfs_start()
+{
+ if [ -r /var/db/ipf/ipstate.ipf -a -r /var/db/ipf/ipnat.ipf ]; then
+ /usr/sbin/ipfs -R ${rc_flags}
+ rm -f /var/db/ipf/ipstate.ipf /var/db/ipf/ipnat.ipf
+ fi
+}
+
+ipfs_stop()
+{
+ if [ ! -d /var/db/ipf ]; then
+ mkdir /var/db/ipf
+ chmod 700 /var/db/ipf
+ chown root:wheel /var/db/ipf
+ fi
+ /usr/sbin/ipfs -W ${rc_flags}
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/etc/rc.d/mixerctl b/etc/rc.d/mixerctl
new file mode 100755
index 0000000..16fcbb9
--- /dev/null
+++ b/etc/rc.d/mixerctl
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+# $NetBSD: mixerctl,v 1.2 2002/06/02 19:04:10 jmcneill Exp $
+#
+
+# PROVIDE: mixerctl
+# REQUIRE: mountcritremote
+
+. /etc/rc.subr
+
+name="mixerctl"
+start_cmd="mixerctl_start"
+stop_cmd=":"
+
+mixerctl_start()
+{
+ if [ -r /etc/mixerctl.conf ]; then
+ echo "Setting mixerctl variables..."
+ while read setting; do
+ mixerctl -n -w $setting
+ done < /etc/mixerctl.conf
+ fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/etc/rc.d/ndbootd b/etc/rc.d/ndbootd
new file mode 100755
index 0000000..e24f8fc
--- /dev/null
+++ b/etc/rc.d/ndbootd
@@ -0,0 +1,18 @@
+#!/bin/sh
+#
+# $NetBSD$
+#
+
+# PROVIDE: ndbootd
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="ndbootd"
+rcvar=$name
+command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="/etc/ethers"
+
+load_rc_config $name
+run_rc_command "$1"
OpenPOWER on IntegriCloud