Remove RCng files that were brought in from NetBSD, but we ended up not

using them (or did and no longer do).
This commit is contained in:
David E. O'Brien 2005-06-06 02:51:26 +00:00
parent f2999b2fdf
commit 737840187b
27 changed files with 0 additions and 1188 deletions

View File

@ -1,22 +0,0 @@
#!/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"

View File

@ -1,20 +0,0 @@
#!/bin/sh
#
# $NetBSD: dhcpd,v 1.5 2002/03/22 04:33:58 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: dhcpd
# REQUIRE: DAEMON
# BEFORE: LOGIN
. /etc/rc.subr
name="dhcpd"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/${name}.conf /var/db/${name}.leases"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,19 +0,0 @@
#!/bin/sh
#
# $NetBSD: dhcrelay,v 1.5 2002/03/22 04:33:58 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: dhcrelay
# REQUIRE: DAEMON
# BEFORE: LOGIN
. /etc/rc.subr
name="dhcrelay"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,27 +0,0 @@
#!/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

View File

@ -1,18 +0,0 @@
#!/bin/sh
#
# $NetBSD: gated,v 1.3 2000/05/13 08:45:06 lukem Exp $
#
# PROVIDE: gated
# REQUIRE: DAEMON
. /etc/rc.subr
name="gated"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/${name}.conf"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,17 +0,0 @@
#!/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"

View File

@ -1,20 +0,0 @@
#!/bin/sh
#
# $NetBSD: kdc,v 1.5 2002/03/22 04:33:58 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: kdc
# REQUIRE: NETWORKING
# BEFORE: SERVERS
. /etc/rc.subr
name="kdc"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/krb5.conf"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,40 +0,0 @@
#!/bin/sh
#
# $NetBSD: lkm1,v 1.6 2000/10/09 06:11:38 nisimura Exp $
# $FreeBSD$
#
# PROVIDE: beforenetlkm
# REQUIRE: root bootconf
. /etc/rc.subr
name="lkm1"
rcvar="lkm"
start_cmd="lkm1_start"
stop_cmd="lkm1_stop"
lkm1_start()
{
# load kernel modules specified in /etc/lkm.conf if the /usr
# filesystem is already present with "/" or can be mounted now
#
if [ -f /etc/rc.lkm ]; then
mount /usr >/dev/null 2>&1
if [ -x /usr/bin/ld ]; then
lkmstage=BEFORENET
set start ; . /etc/rc.lkm
fi
fi
}
lkm1_stop()
{
if [ -f /etc/rc.lkm ] && [ -x /usr/bin/ld ]; then
lkmstage=BEFORENET
set stop ; . /etc/rc.lkm
fi
}
load_rc_config lkm
run_rc_command "$1"

View File

@ -1,38 +0,0 @@
#!/bin/sh
#
# $NetBSD: lkm2,v 1.4 2000/09/19 13:04:38 lukem Exp $
# $FreeBSD$
#
# PROVIDE: beforemountlkm
# REQUIRE: syslogd
. /etc/rc.subr
name="lkm2"
rcvar="lkm"
start_cmd="lkm2_start"
stop_cmd="lkm2_stop"
# load kernel modules specified in /etc/lkm.conf
#
lkm2_start()
{
if [ -r /etc/rc.lkm ]; then
lkmstage=BEFOREMOUNT
set start ; . /etc/rc.lkm
else
warn "/etc/rc.lkm not found; LKMs not loaded."
fi
}
lkm2_stop()
{
if [ -r /etc/rc.lkm ]; then
lkmstage=BEFOREMOUNT
set stop ; . /etc/rc.lkm
fi
}
load_rc_config lkm
run_rc_command "$1"

View File

@ -1,29 +0,0 @@
#!/bin/sh
#
# $NetBSD: lkm3,v 1.6 2002/03/22 04:33:58 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: aftermountlkm
# REQUIRE: mountall
# BEFORE: DAEMON
. /etc/rc.subr
name="lkm3"
rcvar="lkm"
start_cmd="do_lkm3 start"
stop_cmd="do_lkm3 stop"
do_lkm3()
{
# (un)load kernel modules specified in /etc/lkm.conf
#
if [ -f /etc/rc.lkm ]; then
lkmstage=AFTERMOUNT
set $1 ; . /etc/rc.lkm
fi
}
load_rc_config lkm
run_rc_command "$1"

View File

@ -1,26 +0,0 @@
#!/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"

View File

@ -1,18 +0,0 @@
#!/bin/sh
#
# $NetBSD: mopd,v 1.5 2002/03/22 04:33:59 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: mopd
# REQUIRE: DAEMON
# BEFORE: LOGIN
. /etc/rc.subr
name="mopd"
rcvar=$name
command="/usr/sbin/${name}"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,17 +0,0 @@
#!/bin/sh
#
# $NetBSD: mountall,v 1.3 2000/05/13 08:45:07 lukem Exp $
# $FreeBSD$
#
# PROVIDE: mountall
# REQUIRE: beforemountlkm
. /etc/rc.subr
name="mountall"
start_cmd="echo 'Mounting all filesystems...'; mount -a"
stop_cmd="echo 'Unmounting all filesystems...'; umount -a"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,18 +0,0 @@
#!/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"

View File

@ -1,387 +0,0 @@
#!/bin/sh
#
# $NetBSD: network,v 1.29 2001/01/11 17:56:16 itojun Exp $
# $FreeBSD$
# PROVIDE: network
# REQUIRE: ipfilter ipsec mountcritlocal root tty sysctl
. /etc/rc.subr
name="network"
start_cmd="network_start"
stop_cmd="network_stop"
network_start()
{
# set hostname, turn on network
#
echo "Starting network."
# If $hostname is set, use it for my Internet name,
# otherwise use /etc/myname
#
if [ -z "$hostname" ] && [ -f /etc/myname ]; then
hostname=`cat /etc/myname`
fi
if [ -n "$hostname" ]; then
echo "Hostname: $hostname"
/bin/hostname $hostname
else
# Don't warn about it if we're going to run
# DHCP later, as we will probably get the
# hostname at that time.
#
if ! checkyesno dhclient && [ -z "`/bin/hostname`" ]; then
warn "\$hostname not set."
fi
fi
# Check $domainname first, then /etc/defaultdomain,
# for NIS/YP domain name
#
if [ -z "$domainname" ] && [ -f /etc/defaultdomain ]; then
domainname=`cat /etc/defaultdomain`
fi
if [ -n "$domainname" ]; then
echo "NIS domainname: $domainname"
domainname $domainname
fi
# Flush all routes just to make sure it is clean
if checkyesno flushroutes; then
route -n flush
fi
# Set the address for the first loopback interface, so that the
# auto-route from a newly configured interface's address to lo0
# works correctly.
#
# NOTE: obscure networking problems may occur if lo0 isn't configured...
#
ifconfig lo0 inet 127.0.0.1
# According to RFC1122, 127.0.0.0/8 should not leave the node.
#
route add -inet 127.0.0.0 -netmask 0xff000000 127.0.0.1 -reject
# IPv6 routing setups, and host/router mode selection.
#
if ifconfig lo0 inet6 >/dev/null 2>&1; then
# We have IPv6 support in kernel.
# disallow link-local unicast dest without outgoing scope
# identifiers.
#
route add -inet6 fe80:: -prefixlen 10 ::1 -reject
# disallow site-local unicast dest without outgoing scope
# identifiers.
# If you configure site-locals without scope id (it is
# permissible config for routers that are not on scope
# boundary), you may want to comment the following one out.
#
if ! checkyesno ip6sitelocal; then
route add -inet6 fec0:: -prefixlen 10 ::1 -reject
fi
# disallow "internal" addresses to appear on the wire.
#
route add -inet6 ::ffff:0.0.0.0 -prefixlen 96 ::1 -reject
# disallow packets to malicious IPv4 compatible prefix
#
route add -inet6 ::224.0.0.0 -prefixlen 100 ::1 -reject
route add -inet6 ::127.0.0.0 -prefixlen 104 ::1 -reject
route add -inet6 ::0.0.0.0 -prefixlen 104 ::1 -reject
route add -inet6 ::255.0.0.0 -prefixlen 104 ::1 -reject
# disallow packets to malicious 6to4 prefix
#
route add -inet6 2002:e000:: -prefixlen 20 ::1 -reject
route add -inet6 2002:7f00:: -prefixlen 24 ::1 -reject
route add -inet6 2002:0000:: -prefixlen 24 ::1 -reject
route add -inet6 2002:ff00:: -prefixlen 24 ::1 -reject
# Completely disallow packets to IPv4 compatible prefix.
# This may conflict with RFC1933 under following circumstances:
# (1) An IPv6-only KAME node tries to originate packets to IPv4
# compatible destination. The KAME node has no IPv4
# compatible support. Under RFC1933, it should transmit
# native IPv6 packets toward IPv4 compatible destination,
# hoping it would reach a router that forwards the packet
# toward auto-tunnel interface.
# (2) An IPv6-only node originates a packet to IPv4 compatible
# destination. A KAME node is acting as an IPv6 router, and
# asked to forward it.
# Due to rare use of IPv4 compatible address, and security
# issues with it, we disable it by default.
#
route add -inet6 ::0.0.0.0 -prefixlen 96 ::1 -reject
sysctl net.inet6.ip6.forwarding=0 >/dev/null
sysctl net.inet6.ip6.accept_rtadv=0 >/dev/null
# backward compatibility
#
if [ -z "$ip6mode" ] && [ -n "$ip6forwarding" ]; then
warn 'Please migrate to newer rc.conf' \
'(use ip6mode, not ip6forwarding)'
if checkyesno ip6forwarding; then
ip6mode=router
elif checkyesno rtsol; then
ip6mode=autohost
else
ip6mode=host
fi
fi
case $ip6mode in
router)
echo 'IPv6 mode: router'
sysctl net.inet6.ip6.forwarding=1 >/dev/null
;;
autohost)
echo 'IPv6 mode: autoconfigured host'
sysctl net.inet6.ip6.accept_rtadv=1 >/dev/null
;;
host)
echo 'IPv6 mode: host'
;;
*) echo 'WARNING: invalid value in ip6mode'
;;
esac
fi
# Configure all of the network interfaces listed in $net_interfaces;
# if $auto_ifconfig is YES, grab all interfaces from ifconfig.
# In the following, "xxN" stands in for interface names, like "le0".
# For any interfaces that has an $ifconfig_xxN variable associated,
# we do "ifconfig xxN $ifconfig_xxN".
# If there is no such variable, we take the contents of the file
# /etc/ifconfig.xxN, and run "ifconfig xxN" repeatedly, using each
# line of the file as the arguments for a separate "ifconfig"
# invocation.
#
# In order to configure an interface reasonably, you at the very least
# need to specify "[addr_family] [hostname]" (e.g "inet my.domain.org"),
# and probably a netmask (as in "netmask 0xffffffe0"). You will
# frequently need to specify a media type, as in "media UTP", for
# interface cards with multiple media connections that do not
# autoconfigure. See the ifconfig manual page for details.
#
# Note that /etc/ifconfig.xxN takes multiple lines. The following
# configuration is possible:
# inet 10.1.1.1 netmask 0xffffff00
# inet 10.1.1.2 netmask 0xffffff00 alias
# inet6 fec0::1 prefixlen 64 alias
#
# You can put shell script fragment into /etc/ifconfig.xxN by
# starting a line with "!". Refer to ifconfig.if(5) for details.
#
if [ "$net_interfaces" != NO ]; then
if checkyesno auto_ifconfig; then
tmp=`ifconfig -l`
for cloner in `ifconfig -C 2>/dev/null`; do
for int in /etc/ifconfig.${cloner}[0-9]*; do
[ ! -f $int ] && break
tmp="$tmp ${int##*.}"
done
done
else
tmp="$net_interfaces"
fi
echo -n 'Configuring network interfaces:'
for int in $tmp; do
eval args=\$ifconfig_$int
if [ -n "$args" ]; then
echo -n " $int"
ifconfig $int $args
elif [ -f /etc/ifconfig.$int ]; then
echo -n " $int"
while read args; do
[ -z "$args" ] && continue
case "$args" in
"#"*)
;;
"!"*)
eval ${args#*!}
;;
*)
ifconfig $int $args
;;
esac
done < /etc/ifconfig.$int
else
if ! checkyesno auto_ifconfig; then
echo
warn \
"/etc/ifconfig.$int missing and ifconfig_$int not set;"
warn "interface $int not configured."
fi
continue
fi
configured_interfaces="$configured_interfaces $int"
done
echo "."
fi
# Check $defaultroute, then /etc/mygate, for the name of my gateway
# host. That name must be in /etc/hosts.
#
if [ -z "$defaultroute" ] && [ -f /etc/mygate ]; then
defaultroute=`cat /etc/mygate`
fi
if [ -n "$defaultroute" ]; then
route add default $defaultroute
fi
# Check if each configured interface xxN has an $ifaliases_xxN variable
# associated, then configure additional IP addresses for that interface.
# The variable contains a list of "address netmask" pairs, with
# "netmask" set to "-" if the interface default netmask is to be used.
#
# Note that $ifaliases_xxN works only with certain configurations and
# considered not recommended. Use /etc/ifconfig.xxN if possible.
#
#
if [ -n "$configured_interfaces" ]; then
echo "Adding interface aliases:"
done_aliases_message=yes
fi
for int in $configured_interfaces; do
eval args=\$ifaliases_$int
if [ -n "$args" ]; then
set -- $args
while [ $# -ge 2 ]; do
addr=$1 ; net=$2 ; shift 2
if [ "$net" = "-" ]; then
# for compatibility only, obsolete
ifconfig $int inet alias $addr
else
ifconfig $int inet alias $addr \
netmask $net
fi
# Use loopback, not the wire
route add $addr 127.0.0.1
done
fi
done
# /etc/ifaliases, if it exists, contains the names of additional IP
# addresses for each interface. It is formatted as a series of lines
# that contain
# address interface netmask
#
# Note that /etc/ifaliases works only with certain cases only and its
# use is not recommended. Use /etc/ifconfig.xxN instead.
#
#
if [ -f /etc/ifaliases ]; then
if [ "$done_aliases_message" != yes ]; then
echo "Adding interface aliases:"
fi
while read addr int net; do
if [ -z "$net" ]; then
# for compatibility only, obsolete
ifconfig $int inet alias $addr
else
ifconfig $int inet alias $addr netmask $net
fi
# use loopback, not the wire
route add $addr 127.0.0.1
done < /etc/ifaliases
fi
# IPv6 interface autoconfiguration.
#
if ifconfig lo0 inet6 >/dev/null 2>&1; then
# wait till DAD is completed. always invoke it in case
# if are configured manually by ifconfig
#
dadcount=`sysctl -n net.inet6.ip6.dad_count 2>/dev/null`
sleep $dadcount
sleep 1
if checkyesno rtsol; then
if [ "$ip6mode" = "autohost" ]; then
echo 'Sending router solicitation...'
rtsol $rtsol_flags
else
echo
warn \
"ip6mode must be set to 'autohost' to use rtsol."
fi
# wait till DAD is completed, for global addresses
# configured by router advert message.
#
sleep $dadcount
sleep 1
fi
fi
# XXX this must die
if [ -s /etc/netstart.local ]; then
sh /etc/netstart.local start
fi
}
network_stop()
{
echo "Stopping network."
# XXX this must die
if [ -s /etc/netstart.local ]; then
sh /etc/netstart.local stop
fi
echo "Deleting aliases."
if [ -f /etc/ifaliases ]; then
while read addr int net; do
ifconfig $int inet delete $addr
done < /etc/ifaliases
fi
for int in `ifconfig -lu`; do
eval args=\$ifaliases_$int
if [ -n "$args" ]; then
set -- $args
while [ $# -ge 2 ]; do
addr=$1 ; net=$2 ; shift 2
ifconfig $int inet delete $addr
done
fi
done
# down interfaces
#
echo -n 'Downing network interfaces:'
if [ "$net_interfaces" != NO ]; then
if checkyesno auto_ifconfig; then
tmp=`ifconfig -l`
else
tmp="$net_interfaces"
fi
for int in $tmp; do
eval args=\$ifconfig_$int
if [ -n "$args" ] || [ -f /etc/ifconfig.$int ]; then
echo -n " $int"
ifconfig $int down
fi
done
echo "."
fi
# flush routes
#
route -n flush
}
load_rc_config $name
run_rc_command "$1"

View File

@ -1,18 +0,0 @@
#!/bin/sh
#
# $NetBSD: poffd,v 1.1 2001/01/14 15:37:22 minoura Exp $
# $FreeBSD$
#
# PROVIDE: poffd
# REQUIRE: DAEMON
. /etc/rc.subr
name="poffd"
rcvar=$name
command="/usr/sbin/${name}"
start_precmd="test -c /dev/pow0"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,42 +0,0 @@
#!/bin/sh
#
# $NetBSD: postfix,v 1.6 2002/02/12 02:19:27 lukem Exp $
# $FreeBSD$
#
# PROVIDE: mail
# REQUIRE: LOGIN
# we make mail start late, so that things like .forward's are not
# processed until the system is fully operational
. /etc/rc.subr
name="postfix"
rcvar=$name
required_files="/etc/${name}/main.cf"
start_precmd="postfix_precmd"
start_cmd="${name} start"
stop_cmd="${name} stop"
reload_cmd="${name} reload"
extra_commands="reload"
spooletcdir="/var/spool/${name}/etc"
required_dirs=$spooletcdir
postfix_precmd()
{
# As this is called after the is_running and required_dir checks
# are made in run_rc_command(), we can safely assume ${spooletcdir}
# exists and postfix isn't running at this point (unless forcestart
# is used).
#
for f in localtime resolv.conf services; do
if [ -f /etc/$f ]; then
cmp -s /etc/$f ${spooletcdir}/$f || \
cp -p /etc/$f ${spooletcdir}/$f
fi
done
}
load_rc_config $name
run_rc_command "$1"

View File

@ -1,20 +0,0 @@
#!/bin/sh
#
# $NetBSD: racoon,v 1.3 2002/03/22 04:33:59 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: ike
# REQUIRE: isdnd kdc ppp
# BEFORE: SERVERS
. /etc/rc.subr
name="racoon"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/racoon/racoon.conf"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,41 +0,0 @@
#!/bin/sh
#
# $NetBSD: raidframe,v 1.6 2002/01/27 14:16:33 lukem Exp $
# $FreeBSD$
#
# PROVIDE: disks
. /etc/rc.subr
name="raidframe"
start_cmd="raidframe_start"
stop_cmd=":"
raidframe_start()
{
# Configure non-auto-configured raid devices.
# Ensure order by globbing raid[0-9].conf before raid[0-9][0-9].conf.
#
for cfg in /etc/raid[0-9].conf /etc/raid[0-9][0-9].conf ; do
[ ! -f $cfg ] && continue
dev=${cfg##*/}
dev=${dev%%.conf}
raidctl -c $cfg $dev
done
# Initiate parity/mirror reconstruction as needed, in the background.
#
(
for dev in `sysctl -n hw.disknames`; do
case $dev in
raid[0-9]*)
raidctl -P $dev
;;
esac
done
) &
}
load_rc_config $name
run_rc_command "$1"

View File

@ -1,21 +0,0 @@
#!/bin/sh
#
# $NetBSD: rbootd,v 1.6 2002/03/22 04:34:00 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: rbootd
# REQUIRE: DAEMON
# BEFORE: LOGIN
. /etc/rc.subr
name="rbootd"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/etc/${name}.conf"
extra_commands="reload"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,27 +0,0 @@
#!/bin/sh
#
# $NetBSD: rtsold,v 1.5 2002/03/22 04:34:00 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: rtsold
# REQUIRE: DAEMON
# BEFORE: LOGIN
. /etc/rc.subr
name="rtsold"
rcvar=$name
command="/usr/sbin/${name}"
start_precmd="rtsold_precmd"
rtsold_precmd()
{
if [ "$ip6mode" != "autohost" ]; then
warn "\$ip6mode must be set to 'autohost' to use ${name}."
return 1
fi
}
load_rc_config $name
run_rc_command "$1"

View File

@ -1,19 +0,0 @@
#!/bin/sh
#
# $NetBSD: screenblank,v 1.5 2002/03/22 04:34:00 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: screenblank
# REQUIRE: DAEMON
# BEFORE: LOGIN
. /etc/rc.subr
name="screenblank"
rcvar=$name
command="/usr/sbin/${name}"
pidfile="/var/run/${name}.pid"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,37 +0,0 @@
#!/bin/sh
#
# $NetBSD: swap2,v 1.6 2002/03/22 04:34:00 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: nonlocalswap
# REQUIRE: mountcritremote
# BEFORE: DAEMON
. /etc/rc.subr
name="swap2"
start_cmd="swap2_start"
swap2_start()
{
# "Critical" file systems are now mounted. Go ahead and swap
# to files now, since they will be residing in the critical file
# systems (or, at least, they should be...).
# Check for no swap, and warn about it unless that is desired.
#
swapctl -A -t noblk;
if ! checkyesno no_swap; then
if swapctl -s | grep "no swap devices configured" > /dev/null;
then
warn "No swap space configured!"
fi
fi
}
# Remove all non-block-type swap devices
#
stop_cmd="swapctl -U -t noblk"
load_rc_config swap
run_rc_command "$1"

View File

@ -1,36 +0,0 @@
#!/bin/sh
#
# $NetBSD: sysdb,v 1.9 2002/03/22 04:34:00 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: sysdb
# REQUIRE: mountcritremote
# BEFORE: DAEMON
. /etc/rc.subr
name="sysdb"
start_cmd="sysdb_start"
stop_cmd=":"
sysdb_start()
{
# Build ps databases. If this kernel supports
# machdep.booted_kernel, use that to build the KVM db so dmesg
# will run work when we boot /netbsd.new, etc.
#
echo "Building databases..."
booted_kernel=`sysctl -n machdep.booted_kernel 2>/dev/null`
kvm_mkdb "${booted_kernel:-/netbsd}"
dev_mkdb
# Re-create /var/run/utmp, which is deleted by mountcritlocal
# but can't be recreated by it because install and chown may
# not be available then (possibly no /usr).
#
install -c -m 664 -g utmp /dev/null /var/run/utmp
}
load_rc_config $name
run_rc_command "$1"

View File

@ -1,170 +0,0 @@
#!/bin/sh
#
# $NetBSD: wscons,v 1.9 2002/04/26 00:06:54 lukem Exp $
# $FreeBSD$
#
# PROVIDE: wscons
# REQUIRE: mountcritremote
# BEFORE: LOGIN
. /etc/rc.subr
name="wscons"
rcvar=$name
start_cmd="wscons_start"
stop_cmd=":"
wscons_start()
{
wscfg=/usr/sbin/wsconscfg
wsfld=/usr/sbin/wsfontload
wsctl=/sbin/wsconsctl
config=/etc/wscons.conf
usage="Usage: wsconfig [-n] [-f configfile] [-font fontpgm] [-screen screenpgm]"
DOIT=
while [ $# -gt 0 ]; do
case $1 in
-n)
DOIT=echo
;;
-f)
config=$2
shift
;;
-font)
wsfld=$2
shift
;;
-screen)
wscfg=$2
shift
;;
*)
echo $usage
exit 1
;;
esac
shift
done
# args mean:
# screen idx scr emul
# font name width height enc file
( while read type arg1 arg2 arg3 arg4 arg5; do
case "$type" in
\#*|"")
continue
;;
font)
name=$arg1
width=$arg2
height=$arg3
enc=$arg4
file=$arg5
cmd=$wsfld
case $width in
-)
;;
*)
cmd="$cmd -w $width"
;;
esac
case $height in
-)
;;
*)
cmd="$cmd -h $height"
;;
esac
case $enc in
-)
;;
*)
cmd="$cmd -e $enc"
;;
esac
cmd="$cmd -N $name $file"
eval $DOIT $cmd
;;
screen)
idx=$arg1
scr=$arg2
emul=$arg3
cmd=$wscfg
case $scr in
-)
;;
*)
cmd="$cmd -t $scr"
;;
esac
case $emul in
-)
;;
*)
cmd="$cmd -e $emul"
;;
esac
cmd="$cmd $idx"
eval $DOIT $cmd
;;
keyboard)
kbd=$arg1
cmd=$wscfg
case $kbd in
-|auto)
cmd="$cmd -k"
;;
*)
cmd="$cmd -k $kbd"
;;
esac
eval $DOIT $cmd
;;
encoding)
map=$arg1
cmd="$wsctl -w \"encoding=$map\""
eval $DOIT $cmd
;;
mapfile)
mapfile=$arg1
( while read entry; do
case "$entry" in
\#*|"")
continue
;;
*)
cmd="$wsctl -w \"map+=$entry\""
cmd="$cmd >/dev/null"
eval $DOIT $cmd
;;
esac
done ) < $mapfile
;;
mux)
cmd="$wscfg -m $arg1"
eval $DOIT $cmd
;;
setvar)
cmd="$wsctl -w $arg1"
eval $DOIT $cmd
;;
esac
done ) < $config
}
load_rc_config $name
run_rc_command "$1"

View File

@ -1,20 +0,0 @@
#!/bin/sh
#
# $NetBSD: xdm,v 1.5 2000/07/17 15:24:48 lukem Exp $
#
# PROVIDE: xdm
# REQUIRE: DAEMON LOGIN wscons
# KEYWORD: shutdown
. /etc/rc.subr
name="xdm"
rcvar=$name
command="/usr/X11R6/bin/${name}"
pidfile="/var/run/${name}.pid"
required_files="/usr/X11R6/lib/X11/xdm/xdm-config"
extra_commands="reload"
load_rc_config $name
run_rc_command "$1"

View File

@ -1,21 +0,0 @@
#!/bin/sh
#
# $NetBSD: xfs,v 1.6 2002/03/22 04:34:01 thorpej Exp $
# $FreeBSD$
#
# PROVIDE: xfs
# REQUIRE: mountall cleartmp
# BEFORE: LOGIN
. /etc/rc.subr
name="xfs"
rcvar=$name
command="/usr/X11R6/bin/${name}"
command_args="& sleep 2"
required_files="/usr/X11R6/lib/X11/fs/config"
extra_commands="reload"
load_rc_config $name
run_rc_command "$1"