acpid: use shutdown for poweroff, if available, not /sbin/poweroff
authorCarlos Santos <casantos@datacom.com.br>
Thu, 30 Aug 2018 13:21:20 +0000 (10:21 -0300)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 10 Sep 2018 19:10:10 +0000 (21:10 +0200)
commitab842ce21df58e7731dae675e08894c6e9024e56
tree8e772e834457537416813da06aee933ef99e5415
parent1d3e682b1281c99ff7e69d2353f5f905338190b0
acpid: use shutdown for poweroff, if available, not /sbin/poweroff

It's preferable to use "shutdown -hP now" to ensure that the runlevel is
known, preventing this message on the system console and log:

  WARNING: could not determine runlevel - doing soft poweroff
    (it's better to use shutdown instead of poweroff from the command line)

Signed-off-by: Carlos Santos <casantos@datacom.com.br>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/acpid/acpid.mk