summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorcracauer <cracauer@FreeBSD.org>1999-04-01 13:30:29 +0000
committercracauer <cracauer@FreeBSD.org>1999-04-01 13:30:29 +0000
commitb362db7397fad6ecdf91399c26f63d09348c0345 (patch)
treefa9aa0a743be6fb7973810ac92412076ea831ec2 /etc
parent5610584759a8f26e412dab049cd02e3a33a2d256 (diff)
downloadFreeBSD-src-b362db7397fad6ecdf91399c26f63d09348c0345.zip
FreeBSD-src-b362db7397fad6ecdf91399c26f63d09348c0345.tar.gz
Use new -T switch to turn on immediate interruptibilty in shell
scripts. Also, the ugly 'echo -n' hack to prevent sh from a wrong optimization isn't needed anymore.
Diffstat (limited to 'etc')
-rw-r--r--etc/rc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/rc b/etc/rc
index cdc013c..e494abe 100644
--- a/etc/rc
+++ b/etc/rc
@@ -1,5 +1,5 @@
#!/bin/sh
-# $Id: rc,v 1.183 1999/03/17 04:00:04 billf Exp $
+# $Id: rc,v 1.184 1999/03/28 20:36:03 imp Exp $
# From: @(#)rc 5.27 (Berkeley) 6/5/91
# System startup script run by init on autoboot
@@ -86,6 +86,7 @@ else
echo Skipping disk checks ...
fi
+set -T
trap "echo 'Reboot interrupted'; exit 1" 3
# root normally must be read/write, but if this is a BOOTP NFS
@@ -387,8 +388,7 @@ 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} ] && \
- (trap 'exit 1' 2 ; ${script} start ; echo -n)
+ [ -x ${script} ] && (set -T ; trap 'exit 1' 2 ; ${script} start)
done
done
echo .
OpenPOWER on IntegriCloud