but then the monitor and the PC stays on.
I think this is caused by systemd.
To reboot is still working.
With the command
Code: Select all
systemctl poweroff
Is there a possibility to let the red button just do this command?
Code: Select all
systemctl poweroff
Glad you got it solved. Can you take a little time out to explain exactly what you edited and how for other users running into this?caprea wrote:Thank you,Roky.
Found it and worked.Changed in the latest rows the"halt" to"poweroff"
Code: Select all
if ["$EXIT" ="shutdown_antix" ] ; then
if which persist-config &> /dev/null; then
sudo persist-config --shutdown --command halt
else
sudo halt
fi
fi
Code: Select all
if ["$EXIT" ="shutdown_antix" ] ; then
if which persist-config &> /dev/null; then
sudo persist-config --shutdown --command poweroff
else
sudo poweroff
fi
fi