summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorcracauer <cracauer@FreeBSD.org>1998-09-30 14:44:57 +0000
committercracauer <cracauer@FreeBSD.org>1998-09-30 14:44:57 +0000
commit5461367ad83bcf206749773d71c2cdf4ebe1c3ad (patch)
tree71bad3904f23ea27a296e66280338a75146368a6 /etc
parentc81f8a059591f59cbd6e1fd12b5df2bc6bc4939f (diff)
downloadFreeBSD-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')
-rw-r--r--etc/rc5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/rc b/etc/rc
index 421156b..656b0fd 100644
--- a/etc/rc
+++ b/etc/rc
@@ -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 .
OpenPOWER on IntegriCloud