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

Re: Building a single user Internet terminal / Done!



on Mon, Apr 08, 2002, Shawn McMahon (smcmahon@eiv.com) wrote:
> begin  quoting what Erik van der Meulen said on Mon, Apr 08, 2002 at 10:32:35AM +0200:
> > 
> > - /usr/local/bin/startkiosk only does 'startx'
> 
> Now make that script do a "shutdown -h now" after startx exits, and all
> you'll have to do to shut down is exit X.  Maybe.

Not recommended.  If X quits abnormally, it will also restart.  What you
want:

   startx_command && shutdown -h now

...which should only restart the system if X is exited normally.  If it
exits with a nonzero status, the system stays up.

Peace.

-- 
Karsten M. Self <kmself@ix.netcom.com>           http://kmself.home.netcom.com/
 What Part of "Gestalt" don't you understand?
   zIWETHEY: Provocative, super smart, and oh yeah, just a little sexy.
     http://z.iwethey.org/forums/

Attachment: pgpzJGTDCyabu.pgp
Description: PGP signature


Reply to: