1
0

patch-kexec_kexec_c 525 B

123456789101112131415161718192021222324
  1. --- kexec-tools-2.0.5.orig/kexec/kexec.c 2013-12-13 01:52:47.000000000 +0100
  2. +++ kexec-tools-2.0.5/kexec/kexec.c 2014-03-18 14:46:58.000000000 +0100
  3. @@ -807,17 +807,14 @@ static int k_unload (unsigned long kexec
  4. static int my_shutdown(void)
  5. {
  6. char *args[] = {
  7. - "shutdown",
  8. - "-r",
  9. - "now",
  10. + "reboot",
  11. + "-f",
  12. NULL
  13. };
  14. - execv("/sbin/shutdown", args);
  15. - execv("/etc/shutdown", args);
  16. - execv("/bin/shutdown", args);
  17. + execv("/sbin/reboot", args);
  18. - perror("shutdown");
  19. + perror("reboot");
  20. return -1;
  21. }