Annotation of src/etc/rc.shutdown, Revision 1.3
1.3 ! deraadt 1: # $OpenBSD: rc.shutdown,v 1.2 1999/07/15 14:31:52 provos Exp $
1.1 deraadt 2: #
3: # If it exists, this script is run at system-shutdown by reboot(8),
4: # halt(8).
5: # If the architecture supports keyboard requested halting, it is also
6: # run by init(8) when such an event happens.
7: #
8:
1.3 ! deraadt 9: echo /etc/rc.shutdown in progress...
1.2 provos 10:
11: # save part of our entropy pool for reuse on reboot
12: dd if=/dev/urandom of=/var/db/host.random bs=1024 count=64 >/dev/null 2>&1
13: chmod 600 /var/db/host.random
1.1 deraadt 14:
15: #
16: # Your shell code goes here
17: #
18:
19:
1.3 ! deraadt 20: echo shutdown complete.
1.1 deraadt 21: exit 0 # An exit code of 2 will cause init(8) to attempt powerdown.