reboot-util: unify reboot with parameter in a single implementation
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Feb 2018 17:48:49 +0000 (18:48 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 22 Feb 2018 09:46:26 +0000 (10:46 +0100)
commitc01dcddf803a009dd9118dee0873cb9dd1dd02ce
tree3e83311cf118b02258255558227e909c4b58f4f3
parente3631d1c809e368a5116d01e4fb9b9c7d2dddcca
reboot-util: unify reboot with parameter in a single implementation

So far, we had two implementations of reboot-with-parameter doing pretty
much the same. Let's unify that in a generic implementation used by
both.

This is particulary nice as it unifies all /run/systemd/reboot-param
handling in a single .c file.
src/basic/reboot-util.c
src/basic/reboot-util.h
src/core/shutdown.c
src/systemctl/systemctl.c