diff --git a/etc/defaults/rc.conf b/etc/defaults/rc.conf index f812122da1b5..b2b61bfc43f0 100644 --- a/etc/defaults/rc.conf +++ b/etc/defaults/rc.conf @@ -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 -- # default configuration of /etc/rc.conf @@ -183,6 +183,8 @@ rwhod=NO # Hardware daemons. # 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 # Configuration of "wscons" console driver virtual screens. diff --git a/etc/rc.d/Makefile b/etc/rc.d/Makefile index c9cfa4dbd6d4..ce173f6ffebf 100755 --- a/etc/rc.d/Makefile +++ b/etc/rc.d/Makefile @@ -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 @@ -7,7 +7,7 @@ FILES= DAEMON LOGIN NETWORK SERVERS accounting amd apmd bootparams \ fsck gated inetd ipfilter ipmon ipnat ipsec isdnd kdc ldconfig \ lkm1 lkm2 lkm3 local lpd mopd motd mountall mountcritlocal \ 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 \ savecore screenblank sendmail securelevel sshd swap1 swap2 sysdb \ sysctl syslogd timed ttys virecover wscons xdm xfs ypbind \ diff --git a/etc/rc.d/poffd b/etc/rc.d/poffd new file mode 100644 index 000000000000..9f85090fe304 --- /dev/null +++ b/etc/rc.d/poffd @@ -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"