Put guard shells around stuff started from $local_startup. If you type

SIGINT (C-c), you'll get control passed to the next script even if
the current one blocks signals. The child is not killed, though.
This commit is contained in:
Martin Cracauer 1998-09-30 14:44:57 +00:00
parent afc8ba89ef
commit 043076cc06
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39824

5
etc/rc
View File

@ -1,5 +1,5 @@
#!/bin/sh
# $Id: rc,v 1.156 1998/09/16 05:42:37 jdp Exp $
# $Id: rc,v 1.157 1998/09/16 22:42:56 brian Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@ -346,7 +346,8 @@ if [ "X${local_startup}" != X"NO" ]; then
echo -n 'Local package initialization:'
for dir in ${local_startup}; do
[ -d ${dir} ] && for script in ${dir}/*.sh; do
[ -x ${script} ] && ${script} start
[ -x ${script} ] && \
(trap 'exit 1' 2 ; ${script} start ; echo -n)
done
done
echo .