diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-09-05 19:07:41 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-09-05 19:07:41 +0200 |
commit | 3f7cbcaaabf350586366dbd2bbd555d59fd7be1e (patch) | |
tree | cea9238fc689c2020db2a5a2e9448deb5493d1cb /package/kexec-tools/patches/patch-kexec_kexec_c | |
parent | 78cbe696f16fdb6c76a860c84afe5f28b5b68677 (diff) | |
parent | 5bd343f06caa18e95825a4e6f4f31cf4786e7688 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/kexec-tools/patches/patch-kexec_kexec_c')
-rw-r--r-- | package/kexec-tools/patches/patch-kexec_kexec_c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/package/kexec-tools/patches/patch-kexec_kexec_c b/package/kexec-tools/patches/patch-kexec_kexec_c new file mode 100644 index 000000000..68dc2bee9 --- /dev/null +++ b/package/kexec-tools/patches/patch-kexec_kexec_c @@ -0,0 +1,24 @@ +--- kexec-tools-2.0.2.orig/kexec/kexec.c 2010-07-29 06:19:59.000000000 +0200 ++++ kexec-tools-2.0.2/kexec/kexec.c 2011-09-05 18:50:27.679232756 +0200 +@@ -796,17 +796,14 @@ int k_unload (unsigned long kexec_flags) + static int my_shutdown(void) + { + char *args[] = { +- "shutdown", +- "-r", +- "now", ++ "reboot", ++ "-f", + NULL + }; + +- execv("/sbin/shutdown", args); +- execv("/etc/shutdown", args); +- execv("/bin/shutdown", args); ++ execv("/sbin/reboot", args); + +- perror("shutdown"); ++ perror("reboot"); + return -1; + } + |