diff options
author | cracauer <cracauer@FreeBSD.org> | 1998-09-30 14:44:57 +0000 |
---|---|---|
committer | cracauer <cracauer@FreeBSD.org> | 1998-09-30 14:44:57 +0000 |
commit | 5461367ad83bcf206749773d71c2cdf4ebe1c3ad (patch) | |
tree | 71bad3904f23ea27a296e66280338a75146368a6 /etc/rc | |
parent | c81f8a059591f59cbd6e1fd12b5df2bc6bc4939f (diff) | |
download | FreeBSD-src-5461367ad83bcf206749773d71c2cdf4ebe1c3ad.zip FreeBSD-src-5461367ad83bcf206749773d71c2cdf4ebe1c3ad.tar.gz |
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.
Diffstat (limited to 'etc/rc')
-rw-r--r-- | etc/rc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 . |