summaryrefslogtreecommitdiffstats
path: root/package/kexec/kexec-tools-001-smaller-reboot.patch
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-22 14:59:06 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-01-22 14:59:06 +0000
commitfc613ea410186f0eeacba8f7522fa3797f9d7f75 (patch)
treea2580cf735a2e5a6dde27818d37b07fb707d8975 /package/kexec/kexec-tools-001-smaller-reboot.patch
parent8cb4e4054eaeba7360b0170bd54c051289e4576a (diff)
downloadbuildroot-novena-fc613ea410186f0eeacba8f7522fa3797f9d7f75.tar.gz
buildroot-novena-fc613ea410186f0eeacba8f7522fa3797f9d7f75.zip
- the arm patch broke anybody else.
- restructure patches per task they fulfil
Diffstat (limited to 'package/kexec/kexec-tools-001-smaller-reboot.patch')
-rw-r--r--package/kexec/kexec-tools-001-smaller-reboot.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/package/kexec/kexec-tools-001-smaller-reboot.patch b/package/kexec/kexec-tools-001-smaller-reboot.patch
new file mode 100644
index 000000000..e29f3fc09
--- /dev/null
+++ b/package/kexec/kexec-tools-001-smaller-reboot.patch
@@ -0,0 +1,27 @@
+--- kexec-tools-1.101.orig/kexec/kexec.c 2006-09-20 04:39:38.000000000 +0200
++++ kexec-tools-1.101/kexec/kexec.c 2007-01-22 15:58:30.000000000 +0100
+@@ -630,19 +630,14 @@ int k_unload (unsigned long kexec_flags)
+ */
+ static int my_shutdown(void)
+ {
+- char *args[8];
+- int i = 0;
++ char *args[2];
+
+- args[i++] = "shutdown";
+- args[i++] = "-r";
+- args[i++] = "now";
+- args[i++] = NULL;
++ args[0] = "reboot";
++ args[1] = NULL;
+
+- execv("/sbin/shutdown", args);
+- execv("/etc/shutdown", args);
+- execv("/bin/shutdown", args);
++ execv("/sbin/reboot", args);
+
+- perror("shutdown");
++ perror("reboot");
+ return -1;
+ }
+