Does anyone know why this code does not work?
Code:
btn:connect("clicked", function ()
win:hide()
win:destroy()
os.execute("/sbin/poweroff")
end)
If I substitute "/bin/poweroff" with "/sbin/fconfig" it prints ifconfig output on the terminal, so I'm pretty sure callback is correctly called.
I've also checked with "shutdown -t 0 now".
No way to switch off the Iliad from inside a lua+lgob program.
Thanks,
Iņigo