On Fri, Nov 25, 2011 at 18:25, Leonid Isaev <lisaev@xxxxxxxxxxxx> wrote: > The sleep is needed to avoid a race condition: logout happens before the > policykit starts. What I don't understand is why ck doesn't complain about an > empty utmp entry? I though you have to keep your user logged in, so that "w" > returns something. I suspect, you won't be able to use Upower to shutdown... Thank you both, added a sleep to the script and now it works fine. I use halt for shutdown, which i do rarely, i mostly just suspend to ram so I only noticed the polcy/console-kit error because of the failing automount. -- J.