* Systemctl is the nicer way, but sometimes has issues. */
| 34 | * Systemctl is the nicer way, but sometimes has issues. |
| 35 | */ |
| 36 | void openhd::reboot::systemctl_shutdown() { |
| 37 | OHDUtil::run_command("systemctl", {"start", "poweroff.target"}, true); |
| 38 | } |
| 39 | |
| 40 | void openhd::reboot::systemctl_reboot() { |
| 41 | OHDUtil::run_command("systemctl", {"start", "reboot.target"}, true); |
nothing calls this directly
no outgoing calls
no test coverage detected