From ca4f01e71d51228a1f1229bdeb9e6106bdde0ec6 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Wed, 10 Dec 2014 16:30:49 +0100 Subject: [PATCH] rc: sync the preamble code with FreeBSD --- usr/local/etc/rc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/usr/local/etc/rc b/usr/local/etc/rc index 1a89f2d62..767902a17 100755 --- a/usr/local/etc/rc +++ b/usr/local/etc/rc @@ -6,11 +6,13 @@ # Copyright (C) 2003-2004 Manuel Kasper . # All rights reserved. -#/bin/stty status '^T' -#/bin/stty susp '^-' intr '^-' quit '^-' +stty status '^T' 2> /dev/null -#trap : 2 -#trap : 3 +# Set shell to ignore SIGINT (2), but not children; +# shell catches SIGQUIT (3) and returns to single user. +# +trap : 2 +trap "echo 'Boot interrupted'; exit 1" 3 HOME=/ PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin