On Fri, Aug 26, 2005 at 10:48:53AM +0100, Andres Jimenez wrote:
=> What about a small script with a menu and different options?
Bear in mind that the keyboard handler under X11 traps keypresses. As a
matter of fact, the magic c-a-d isn't magic at all - the console keymap
just maps it to "Boot", which means "send SIGINT to PID 1", which (as
stated in inittab(5) ) calls the ctrlaltdel line if defined.
One could map "Boot" to another key or keysequence (go figure mapping it
to the "Enter" key...) or have the ctrlaltdel instance being called with
# kill -INT 1
(provided of course PID 1 is goold old sysv-init)
Anyway, as I was reminded on one of my first posts to this list, back in
late 2002, "little hacky shell scripts tend to introduce in the system more
evilness (eg: race conditions) than they solve".
p.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!