From bafa8226ac154c1947cd07cce7e83e01de427d1d Mon Sep 17 00:00:00 2001
From: Stephen Hemminger <shemminger@vyatta.com>
Date: Tue, 21 Feb 2012 11:22:19 -0800
Subject: Disable reboot on ctrl-alt-del

Bug 6526
Disable ctrl-alt-del where all the other system changes happen
on installation.
---
 debian/vyatta-cfg-system.postinst.in | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/debian/vyatta-cfg-system.postinst.in b/debian/vyatta-cfg-system.postinst.in
index 2d028c8f..36644e7a 100644
--- a/debian/vyatta-cfg-system.postinst.in
+++ b/debian/vyatta-cfg-system.postinst.in
@@ -198,6 +198,9 @@ if [ -e /etc/default/mdadm ]; then
     sed -i 's/^START_DAEMON.*$/START_DAEMON=false/' /etc/default/mdadm
 fi
 
+# Disable reboot on ctrl-alt-delete
+sed -i -e '/^ca/s/\/sbin\/shutdown .*$/\/bin\/echo "Ctrl\-Alt\-Del disabled."/' /etc/inittab
+
 # remove unnecessary ddclient script in /etc/ppp/ip-up.d/
 # this logs unnecessary messages trying to start ddclient
 rm -f /etc/ppp/ip-up.d/ddclient
-- 
cgit v1.2.3