For anyone interested, I ended up replacing the reboot command (that by default is a link to busybox) with a custom script that simply writes a file in the /tmp folder and then calls "busybox reboot".
S
Best posts made by sarapg
-
RE: Distinguish between reboot and halt/poweroff