On 2006-10-26, Roman Cheplyaka <[EMAIL PROTECTED]> wrote:
> I want to shutdown Ion and then shutdown the whole workstation with one
> Lua function. The only way I see is
>
> os.execute("sh -c 'sleep 1s; sudo halt'&")
> ioncore.shutdown()
>
> but this is dirty.Use an .xinitrc or .xsession hack. Have your Ion-side shutdown script write something in some file (~/.shutdown-status), and when Ion has quite -- or even better, X itself, if you wrap startx -- then halt. -- Tuomo
