diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-06 07:55:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-06 07:55:04 +0000 |
commit | 3147963759c7c78f70cd12e9cea49a38d289688d (patch) | |
tree | c7264cd7bfd95a5e813d3a5ee638caeb73e5f543 | |
parent | aac51e00fb9c16b111f80cd2f072981321ce3b06 (diff) |
your basic rc.shutdown file
-rw-r--r-- | etc/Makefile | 6 | ||||
-rw-r--r-- | etc/rc.shutdown | 17 |
2 files changed, 20 insertions, 3 deletions
diff --git a/etc/Makefile b/etc/Makefile index 7f0cc9aa0e2..b67075c7f18 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.97 1999/04/30 00:46:25 art Exp $ +# $OpenBSD: Makefile,v 1.98 1999/07/06 07:55:03 deraadt Exp $ TZDIR= /usr/share/zoneinfo LOCALTIME= US/Pacific @@ -18,8 +18,8 @@ BIN1= aliases bootptab changelist ccd.conf csh.cshrc csh.login csh.logout \ ipf.rules ksh.kshrc locate.rc man.conf monthly motd mrouted.conf \ myname ipnat.rules netstart networks newsyslog.conf passwd.conf \ phones printcap protocols rbootd.conf rc rc.conf rc.local \ - rc.securelevel remote rpc security services shells syslog.conf weekly \ - etc.${MACHINE}/disktab dhclient.conf + rc.securelevel rc.shutdown remote rpc security services shells \ + syslog.conf weekly etc.${MACHINE}/disktab dhclient.conf # -rw-rw-r-- BIN2= motd diff --git a/etc/rc.shutdown b/etc/rc.shutdown new file mode 100644 index 00000000000..f38ab55e4a8 --- /dev/null +++ b/etc/rc.shutdown @@ -0,0 +1,17 @@ +# $OpenBSD: rc.shutdown,v 1.1 1999/07/06 07:55:03 deraadt Exp $ +# +# If it exists, this script is run at system-shutdown by reboot(8), +# halt(8). +# If the architecture supports keyboard requested halting, it is also +# run by init(8) when such an event happens. +# + +echo -n /etc/rc.shutdown in progress... + +# +# Your shell code goes here +# + + +echo done. +exit 0 # An exit code of 2 will cause init(8) to attempt powerdown. |