Quote:
Originally Posted by Lucas Malor
From halt.c you linked:
Code:
//config:config HALT
//config: bool "halt (4 kb)"
//config: default y
//config: help
//config: Stop all processes and halt the system.
//config:
//config:config POWEROFF
//config: bool "poweroff (4 kb)"
//config: default y
//config: help
//config: Stop all processes and power off the system.
It seems they are the same binary that can halt, poweroff and shutdown. So in Busybox poweroff is *not* halt. It has the same binary, that it's probably called with a flag that do a poweroff. It must be so, or it has no reason to make an alias for halt to a known command name that do something different.
|
They are called based on the applet name (either a link to busybox, or specified as the first argument). Each mode changes the flag sent to
reboot. And halting and powering off is slightly different. Halting doesn't remove power. Powering off does (but not on the Kobo, as I don't think it has
POWER_RESET_IMX, but I haven't actually checked).
Also, regarding your earlier comment about /etc/pm/suspend.d, that is for pm-utils, which isn't even usually used on systemd anymore, so you won't even find it on most modern distros. The Kobo doesn't have pm-utils either, and it doesn't need it. And it does have a real suspend mode, which is why it sets a RTC alarm to wake it up. The reason why your script may have worked before is the periodic wake-up for syncing.