Add /etc/rc.d/poffd, for x68k power management deamon.
This commit is contained in:
parent
439b247426
commit
cb75d98f1d
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: rc.conf,v 1.6 2001/01/08 12:45:39 martin Exp $
|
# $NetBSD: rc.conf,v 1.7 2001/01/14 15:38:30 minoura Exp $
|
||||||
#
|
#
|
||||||
# /etc/defaults/rc.conf --
|
# /etc/defaults/rc.conf --
|
||||||
# default configuration of /etc/rc.conf
|
# default configuration of /etc/rc.conf
|
||||||
@ -183,6 +183,8 @@ rwhod=NO
|
|||||||
# Hardware daemons.
|
# Hardware daemons.
|
||||||
#
|
#
|
||||||
apmd=NO apmd_flags="" # APM power management daemon.
|
apmd=NO apmd_flags="" # APM power management daemon.
|
||||||
|
poffd=NO # x68k power switch monitor
|
||||||
|
poffd_flags="'shutdown -p now'"
|
||||||
screenblank=NO screenblank_flags="" # wscons and FBIO screenblanker
|
screenblank=NO screenblank_flags="" # wscons and FBIO screenblanker
|
||||||
|
|
||||||
# Configuration of "wscons" console driver virtual screens.
|
# Configuration of "wscons" console driver virtual screens.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $NetBSD: Makefile,v 1.15 2001/01/07 17:53:36 martin Exp $
|
# $NetBSD: Makefile,v 1.16 2001/01/14 15:37:22 minoura Exp $
|
||||||
|
|
||||||
.include <bsd.own.mk>
|
.include <bsd.own.mk>
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ FILES= DAEMON LOGIN NETWORK SERVERS accounting amd apmd bootparams \
|
|||||||
fsck gated inetd ipfilter ipmon ipnat ipsec isdnd kdc ldconfig \
|
fsck gated inetd ipfilter ipmon ipnat ipsec isdnd kdc ldconfig \
|
||||||
lkm1 lkm2 lkm3 local lpd mopd motd mountall mountcritlocal \
|
lkm1 lkm2 lkm3 local lpd mopd motd mountall mountcritlocal \
|
||||||
mountcritremote mountd mrouted named network newsyslog nfsd \
|
mountcritremote mountd mrouted named network newsyslog nfsd \
|
||||||
nfslocking ntpd ntpdate rpcbind postfix ppp pwcheck quota \
|
nfslocking ntpd ntpdate rpcbind poffd postfix ppp pwcheck quota \
|
||||||
raidframe rarpd rbootd root route6d routed rtadvd rtsold rwho \
|
raidframe rarpd rbootd root route6d routed rtadvd rtsold rwho \
|
||||||
savecore screenblank sendmail securelevel sshd swap1 swap2 sysdb \
|
savecore screenblank sendmail securelevel sshd swap1 swap2 sysdb \
|
||||||
sysctl syslogd timed ttys virecover wscons xdm xfs ypbind \
|
sysctl syslogd timed ttys virecover wscons xdm xfs ypbind \
|
||||||
|
17
etc/rc.d/poffd
Normal file
17
etc/rc.d/poffd
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# $NetBSD: poffd,v 1.1 2001/01/14 15:37:22 minoura Exp $
|
||||||
|
#
|
||||||
|
|
||||||
|
# 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"
|
Loading…
Reference in New Issue
Block a user