There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
UNIX/Linux
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > UNIX/Linux >
Adding shortcuts to /etc/inittab


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
sawanv's Avatar
Junior Member with 2 posts.
 
Join Date: Sep 2003
19-Sep-2003, 03: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
Distinguished Member with 12,604 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
19-Sep-2003, 07: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
__________________
I hate asking the same question twice!
How to ask questions the smart way!
Microsoft MVP - Windows Shell/User
sawanv's Avatar
Junior Member with 2 posts.
 
Join Date: Sep 2003
19-Sep-2003, 11:54 AM #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


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

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 05:35 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.