patch-kexec_kexec_c 525 B

123456789101112131415161718192021222324
  1. --- kexec-tools-2.0.2.orig/kexec/kexec.c 2010-07-29 06:19:59.000000000 +0200
  2. +++ kexec-tools-2.0.2/kexec/kexec.c 2011-09-05 18:50:27.679232756 +0200
  3. @@ -796,17 +796,14 @@ int k_unload (unsigned long kexec_flags)
  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. }