use symbolic signal names instead of numbers
This commit is contained in:
parent
015f17a7cb
commit
bd7fad6c47
10
etc/rc
10
etc/rc
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# $NetBSD: rc,v 1.157 2001/05/09 16:53:45 lukem Exp $
|
||||
# $NetBSD: rc,v 1.158 2001/06/14 07:50:06 lukem Exp $
|
||||
#
|
||||
# rc --
|
||||
# Run the scripts in /etc/rc.d with rcorder.
|
||||
|
@ -29,11 +29,11 @@ fi
|
|||
|
||||
stty status '^T'
|
||||
|
||||
# Set shell to ignore SIGINT (2), but not children;
|
||||
# shell catches SIGQUIT (3) and returns to single user.
|
||||
# Set shell to ignore SIGINT, but not children;
|
||||
# shell catches SIGQUIT and returns to single user.
|
||||
#
|
||||
trap : 2
|
||||
trap "echo 'Boot interrupted.'; exit 1" 3
|
||||
trap : INT
|
||||
trap "echo 'Boot interrupted.'; exit 1" QUIT
|
||||
|
||||
date
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: security,v 1.54 2001/05/10 14:19:27 atatat Exp $
|
||||
# $NetBSD: security,v 1.55 2001/06/14 07:50:07 lukem Exp $
|
||||
# from: @(#)security 8.1 (Berkeley) 6/9/93
|
||||
#
|
||||
|
||||
|
@ -47,7 +47,7 @@ LIST=secure6.$$
|
|||
OUTPUT=secure7.$$
|
||||
LABELS=secure8.$$
|
||||
|
||||
trap '/bin/rm -rf $SECUREDIR ; exit 0' 0 2 3
|
||||
trap '/bin/rm -rf $SECUREDIR ; exit 0' EXIT INT QUIT
|
||||
|
||||
# Handle backup_dir not being set in .conf file
|
||||
backup_dir=${backup_dir:-/var/backups}
|
||||
|
|
Loading…
Reference in New Issue