python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / misc / drivers / argononed / fix-hardcoded-reboot-poweroff-paths.patch
blob88bcb6ddd25e48cfb56c5769c66a9644cd9a6a4d
1 --- a/src/argononed.c
2 +++ b/src/argononed.c
3 @@ -783,13 +783,13 @@
5 log_message(LOG_DEBUG, "EXEC REBOOT");
6 sync();
7 - system("/sbin/reboot");
8 + system("/run/current-system/sw/bin/reboot");
10 if (count >= 39 && count <= 41)
12 log_message(LOG_DEBUG, "EXEC SHUTDOWN");
13 sync();
14 - system("/sbin/poweroff");
15 + system("/run/current-system/sw/bin/poweroff");
17 #else
18 log_message(LOG_INFO,"Daemon Ready");