Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | halt: switch __progname tests to use strncmp | Colin Booth | 2021-03-10 | 1 | -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 20190906 | Leah Neukirchen | 2019-09-06 | 1 | -0/+1 |
| | |||||
* | halt: style | Leah Neukirchen | 2019-09-06 | 1 | -5/+5 |
| | |||||
* | halt: also update utmp | Leah Neukirchen | 2019-09-06 | 1 | -0/+11 |
| | |||||
* | halt: add support for wtmp | Leah Neukirchen | 2019-09-06 | 1 | -5/+50 |
| | | | | | | This implements -w and -d. Also add -B to create boot-time wtmp entries. | ||||
* | halt: Remove trailing whitespace | Sören Tempel | 2015-04-08 | 1 | -1/+1 |
| | |||||
* | halt: don't sync() on -w. | Christian Neukirchen | 2015-03-18 | 1 | -0/+1 |
| | |||||
* | halt: don't violate POSIX namespace. | Christian Neukirchen | 2015-03-18 | 1 | -2/+2 |
| | |||||
* | halt.c: fix path to runit-init. | Juan RP | 2014-04-26 | 1 | -3/+3 |
| | |||||
* | Add halt/pause utils from ignite. | Juan RP | 2014-04-26 | 1 | -0/+76 |