Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus batch bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming gpu hard drive hardware hdmi internet laptop malware memory modem monitor motherboard network printer problem ram registry router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Adding shortcuts to /etc/inittab

Reply  
Thread Tools
sawanv's Avatar
Junior Member with 2 posts.
 
Join Date: Sep 2003
19-Sep-2003, 04:10 AM #1
Adding shortcuts to /etc/inittab
Hello all.

Here we go...

I want to set up my own shortcuts in /etc/inittab so that, for example, I can have CTRL+ALT+End shutdown the system.

Yes I know I can point CTRL+ALT+Del to /sbin/shutdown -h. I want it left to the reboot option.

Yes I know there is something called kbrequest. There appears to be no docs about that. No docs on how to connect it to keys in inttab. There were a couple of mails in Debian lists but couldnt understand what they were on about.

What the hell is the matter when we cant seem to find documentation for this kind of stuff? It pisses me off incredibly. Hasnt anbody tried to do this kind of stuff before? There is an HOWTO in some Eastern Europen language which Google translation screwed up. God...

Sawan
Squashman's Avatar
Trusted Advisor with 18,706 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
Experience: Bocks of Rox
19-Sep-2003, 08:03 AM #2
So you want ctrl+alt+del to automatically reboot the server. According to my inittab file on my RedHat box that should be in there already. But I comment it out.

# Trap CTRL-ALT-DELETE
# ca::ctrlaltdel:/sbin/shutdown -t3 -r now
# Above line commented out by Josh 8-15-03

http://www.redhat.com/docs/manuals/l...le-access.html
sawanv's Avatar
Junior Member with 2 posts.
 
Join Date: Sep 2003
19-Sep-2003, 12:54 PM #3
Thanks for your eply, but you did not read my post correctly.

I WANT ctrl+alt+del to point to shutdown -r, i.e. the default option.

I want to be able to define my own key bindings (maybe ctrl+alt+insert) to be able to do anything else I want (maybe a shutdown -h).

Sawan
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 01:10 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.