diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2002-06-13 22:14:38 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2002-06-13 22:14:38 +0000 |
commit | bf98eb7293f056f3608d77896f2c62b3a643fda1 (patch) | |
tree | 66c6bb5a00064f96b9bd4b160f1dfc913427be83 /etc | |
parent | b1ea4d6a2490c5579ce00d1613bdaa795a3b2eee (diff) | |
download | FreeBSD-src-bf98eb7293f056f3608d77896f2c62b3a643fda1.zip FreeBSD-src-bf98eb7293f056f3608d77896f2c62b3a643fda1.tar.gz |
This commit was manufactured by cvs2svn to create branch 'NETBSD'.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/rc.d/NETWORKING | 12 | ||||
-rw-r--r-- | etc/rc.d/altqd | 22 | ||||
-rw-r--r-- | etc/rc.d/moused | 47 |
3 files changed, 81 insertions, 0 deletions
diff --git a/etc/rc.d/NETWORKING b/etc/rc.d/NETWORKING new file mode 100644 index 0000000..ca23df3 --- /dev/null +++ b/etc/rc.d/NETWORKING @@ -0,0 +1,12 @@ +#!/bin/sh +# +# $NetBSD: NETWORKING,v 1.2 2002/03/22 04:33:57 thorpej Exp $ +# $FreeBSD$ +# + +# PROVIDE: NETWORKING NETWORK +# REQUIRE: network dhclient altqd network1 network2 network_ipv6 ppp-user +# KEYWORD: FreeBSD NetBSD + +# This is a dummy dependancy, for services which require networking +# to be operational before starting. diff --git a/etc/rc.d/altqd b/etc/rc.d/altqd new file mode 100644 index 0000000..c7e626e --- /dev/null +++ b/etc/rc.d/altqd @@ -0,0 +1,22 @@ +#!/bin/sh +# +# $NetBSD: altqd,v 1.2 2002/03/22 04:33:58 thorpej Exp $ +# $FreeBSD$ +# + +# PROVIDE: altqd +# REQUIRE: network mountcritlocal dhclient +# BEFORE: NETWORKING +# KEYWORD: shutdown + +. /etc/rc.subr + +name="altqd" +rcvar=$name +command="/usr/sbin/${name}" +pidfile="/var/run/${name}.pid" +required_files="/etc/altq.conf" +extra_commands="reload" + +load_rc_config $name +run_rc_command "$1" diff --git a/etc/rc.d/moused b/etc/rc.d/moused new file mode 100644 index 0000000..bd42e9f --- /dev/null +++ b/etc/rc.d/moused @@ -0,0 +1,47 @@ +#!/bin/sh +# +# $NetBSD: moused,v 1.1 2001/10/29 23:25:01 augustss Exp $ +# $FreeBSD$ +# + +# PROVIDE: moused +# REQUIRE: DAEMON +# KEYWORD: FreeBSD NetBSD + +. /etc/rc.subr + +name=moused +rcvar=`set_rcvar` + +case `${CMD_OSTYPE}` in +FreeBSD) + start_cmd="moused_start" + ;; +NetBSD) + command="/usr/sbin/${name}" + ;; +esac + +moused_start() +{ + echo -n 'Starting moused:' + /usr/sbin/moused ${moused_flags} -p ${moused_port} -t ${moused_type} + + _mousechar_arg= + case ${mousechar_start} in + [Nn][Oo] | '') + ;; + *) + echo -n ' mousechar_start' + _mousechar_arg="-M ${mousechar_start}" + ;; + esac + + for ttyv in /dev/ttyv* ; do + vidcontrol < ${ttyv} ${_mousechar_arg} -m on + done + echo '.' +} + +load_rc_config $name +run_rc_command "$1" |