Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 1996 11:55:56 +0100 (MET)
From:      dirk@hal.in-berlin.de (Dirk Froemberg)
To:        jdli@linux.csie.nctu.edu.tw (Chien-Ta Lee)
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: How to disable Ctrl-Alt-Del ?!
Message-ID:  <m0tlvvI-000BKfC@hal.in-berlin.de>
In-Reply-To: <199602120312.LAA25839@linux.csie.nctu.edu.tw> from "Chien-Ta Lee" at Feb 12, 96 11:12:51 am

next in thread | previous in thread | raw e-mail | index | archive | help
Chien-Ta Lee writes:

> 	How can I disable reboot from Ctrl-alt-Del ?!

Hello!

Unfortunaly you didn't mention whether you're using syscons or
pcvt. So I'll assume you're using syscons.

The easiest way would be to prevent the kernel to perform a shutdown
after pressing CTRL-ALT-DEL. However, it would be nice to have an
option in /etc/sysconfig which is passed to the kernel via sysctl.

The attached patch is against version 1.117.4.7 of syscons.c. So
the line numbering might be different from yours. After applying
the patch you have to add "options NOSCSHUTDOWN" to your kernel-
config-file in /sys/i386/conf. Finally, recompile your kernel.

	Best regards Dirk

*** /sys/i386/isa/syscons.c.dist	Fri Feb  9 19:51:05 1996
--- /sys/i386/isa/syscons.c	Mon Feb 12 11:39:40 1996
***************
*** 25,31 ****
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   *
!  *  $Id: syscons.c,v 1.117.4.7 1996/02/08 06:32:45 pst Exp $
   */
  
  #include "sc.h"
--- 25,31 ----
   * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   *
!  *  $Id: syscons.c,v 1.117.4.7.1 1996/02/08 06:32:45 pst Exp $
   */
  
  #include "sc.h"
***************
*** 2505,2511 ****
--- 2505,2513 ----
  	    case NOP:
  		break;
  	    case RBT:
+ #ifndef NOSCSHUTDOWN
  		shutdown_nice();
+ #endif
  		break;
  	    case SUSP:
  #if NAPM > 0

-- 
e-mail: dirk@hal.in-berlin.de		PGP-Public-Key available

"Arbeiten ist nicht vergasen - erschiessen - haengen - irgendwie
toeten!"
		-- Klaus Scheurenberg, "Ich will leben"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0tlvvI-000BKfC>