diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-02-21 11:22:19 -0800 |
---|---|---|
committer | Stephen Hemminger <shemminger@vyatta.com> | 2012-02-21 12:23:18 -0800 |
commit | bafa8226ac154c1947cd07cce7e83e01de427d1d (patch) | |
tree | 175a1f7d50e51b5d33e940540b576762e61c634b /debian | |
parent | 5ab7b1628803a1e6d5efc9e0b4521638cec33581 (diff) | |
download | vyatta-cfg-system-bafa8226ac154c1947cd07cce7e83e01de427d1d.tar.gz vyatta-cfg-system-bafa8226ac154c1947cd07cce7e83e01de427d1d.zip |
Disable reboot on ctrl-alt-del
Bug 6526
Disable ctrl-alt-del where all the other system changes happen
on installation.
Diffstat (limited to 'debian')
-rw-r--r-- | debian/vyatta-cfg-system.postinst.in | 3 |
1 files changed, 3 insertions, 0 deletions
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 |