Existe uma solução suja
a) create /etc/init.d/reshutdown with the contents
#!/bin/sh
# force shutdown (due to bug in wakeonlan)
#
case "" in
reshutdown)
touch /home/shutdown.chk
shutdown -r now
;;
start)
if [ -f /home/shutdown.chk ];
then
rm /home/shutdown.chk
shutdown -h now
fi
;;
esac
b) Execute: sudo chmod ugo+x /etc/init.d/reshutdown
b) Execute: sudo update-rc.d reshutdown start 1 1 2 3 4 5 6 .
c) Then to shutdown execute: sudo service reshutdown reshutdown