about summary refs log tree commit diff
path: root/halt.c
Commit message (Collapse)AuthorAgeFilesLines
* halt: switch __progname tests to use strncmpColin Booth2021-03-101-3/+3
| | | | | | | | | | | | | The pending change to allow for alternate init power controls requires that the halt binary provided here be somewhat less strict in its argv[0] matching in order to allow for halt, reboot, and poweroff to still function in situations where the binary has been renamed. This switches from strcmp(__progname, "string") to strncmp(__progname, "string", len), where len is the name of the power command sans any suffix. Signed-off-by: Colin Booth <colin@heliocat.net>
* halt: forgotten include for musl 20190906Leah Neukirchen2019-09-061-0/+1
|
* halt: styleLeah Neukirchen2019-09-061-5/+5
|
* halt: also update utmpLeah Neukirchen2019-09-061-0/+11
|
* halt: add support for wtmpLeah Neukirchen2019-09-061-5/+50
| | | | | | This implements -w and -d. Also add -B to create boot-time wtmp entries.
* halt: Remove trailing whitespaceSören Tempel2015-04-081-1/+1
|
* halt: don't sync() on -w.Christian Neukirchen2015-03-181-0/+1
|
* halt: don't violate POSIX namespace.Christian Neukirchen2015-03-181-2/+2
|
* halt.c: fix path to runit-init.Juan RP2014-04-261-3/+3
|
* Add halt/pause utils from ignite.Juan RP2014-04-261-0/+76