View Single Post
Old 09-07-2019, 12:40 PM   #44
Lucas Malor
Pain in the arse
Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.Lucas Malor will give the Devil his due.
 
Lucas Malor's Avatar
 
Posts: 758
Karma: 77856
Join Date: Apr 2013
Device: Kobo Aura One, Kindle 4
Quote:
Originally Posted by NiLuJe View Post
@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.

Last edited by Lucas Malor; 09-07-2019 at 12:45 PM.
Lucas Malor is offline   Reply With Quote