Looks like this didn't make it to the list the first time, so I'll try it
again:


On Thu, 30 Jan 2003 20:43:31 +0100 (CET)
Gerd Sussner <[EMAIL PROTECTED]> wrote:

> hope, that gives you some inspiration :-)

Perfect!

Well, almost.  *grin*

What I'm trying to do is to set up a "special login" that will load a
menu, then on exit from the menu will give the user a chance to either
return to a bash prompt or shutdown the machine.

What you posted gives me the menu, just the way that I want it.  Thanks a
lot!  That solves a lot of head-scratching.

Now a couple of other related matters:

1.  Can I get rid of the mouse pointer when I'm running the menu?  It's
right there, in the middle of the screen, and I don't see an obvious way
to turn it off.  I don't need a mouse for my menu.

2.  Creating /etc/shutdown.allow and adding -a to the line in /etc/inittab
as follows:

ca::ctrlaltdel:/sbin/shutdown -a -t3 -r now

alows the user to shutdown (reboot) the computer only if he uses
ctrl-alt-delete, but not by calling /sbin/shutdown from a bash script.

Is there a more elegant way to do this than using something like sudo to
allow a shutdown by a user other than root through a script?

3.  The script that I'm experimenting with just kills X on exit from the
menu by using:

killall X

This also seems like the big-gun way to accomplish the goal and I'm
wondering if there is a more elegant way to handle it.

_______________________________________________
Xmame mailing list
[EMAIL PROTECTED]
http://toybox.twisted.org.uk/mailman/listinfo/xmame

Reply via email to