[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [ctrl]-[alt]-[del] => 'shutdown -h now'


I think the line you are looking for will be in the startup file,
/etc/inittab somewhere.  Here are the apropriate lines from my own
(Slink) system's /etc/inittab file, along with the (very useful) lines
immediately below it in the file.

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

You should be able to edit your /etc/inittab as Root, find the line with
"shutdown" in it, and change the "-r" to a "-h".  Remember to use the
command "telinit q" (still as root) to make Init re-read the changed

Note, If you never need to shut down your system using
[ctrl]+[alt]+[del], you can remap this key combination to _ANY_ command
line, not just "shutdown".  You can also edit /etc/inittab to assign a
command to [alt]+[up-arrow] as shown above.  One thing I have
experimented with is to assign [alt]+[up-arrow] to the command "pon",
and [ctrl]+[alt]+[del] to "poff".  I can then start and stop PPP on my
Debian box (which is my firewall/IP masq box), without needing to switch
my monitor on, wait for it to give a picture, and log in, or needing to
telnet in from the PC I want to surf from.


Simon Hales

On Tue, 1 Aug 2000 alan@socrates.cat-it.co.nz wrote:

>Hi Group,
>  Currently when I 3-finger-salute my laptop It seems to run 
>'shutdown -r now' I remember a previous post which mentioned 
>changing this to 'shutdown -h now' - but I can't seem to dig it out 
>... can anyone jog my memory...
>Cheers, Alan
>Alan McNatty (alan@catalyst.net.nz)
>Catalyst IT Limited
>Level 22 Morrison Kent House, 105 The Terrace
>PO Box 10-225
>Wellington, New Zealand
>Ph 64 4 4992267 Fx 64 4 4995596
>Unsubscribe?  mail -s unsubscribe debian-user-request@lists.debian.org < /dev/null

Reply to: