Quote:
Originally Posted by NiLuJe
@Lucas Malor: But poweroff does, and poweroff *is* the halt applet in busybox (this is incidentally why I linked to the source of the applet because it made that fact fairly obvious, even if you're not familiar with busybox's applet backend)  .
|
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.