mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
19 lines
491 B
Diff
19 lines
491 B
Diff
--- a/src/argononed.c
|
|
+++ b/src/argononed.c
|
|
@@ -783,13 +783,13 @@
|
|
{
|
|
log_message(LOG_DEBUG, "EXEC REBOOT");
|
|
sync();
|
|
- system("/sbin/reboot");
|
|
+ system("/run/current-system/sw/bin/reboot");
|
|
}
|
|
if (count >= 39 && count <= 41)
|
|
{
|
|
log_message(LOG_DEBUG, "EXEC SHUTDOWN");
|
|
sync();
|
|
- system("/sbin/poweroff");
|
|
+ system("/run/current-system/sw/bin/poweroff");
|
|
}
|
|
#else
|
|
log_message(LOG_INFO,"Daemon Ready");
|