pass ARCH down to uClibc
[buildroot.git] / package / kexec / kexec-tools-001-smaller-reboot.patch
blobe29f3fc09c88043b02f4b13baf8c63a87b4862b5
1 --- kexec-tools-1.101.orig/kexec/kexec.c 2006-09-20 04:39:38.000000000 +0200
2 +++ kexec-tools-1.101/kexec/kexec.c 2007-01-22 15:58:30.000000000 +0100
3 @@ -630,19 +630,14 @@ int k_unload (unsigned long kexec_flags)
4 */
5 static int my_shutdown(void)
7 - char *args[8];
8 - int i = 0;
9 + char *args[2];
11 - args[i++] = "shutdown";
12 - args[i++] = "-r";
13 - args[i++] = "now";
14 - args[i++] = NULL;
15 + args[0] = "reboot";
16 + args[1] = NULL;
18 - execv("/sbin/shutdown", args);
19 - execv("/etc/shutdown", args);
20 - execv("/bin/shutdown", args);
21 + execv("/sbin/reboot", args);
23 - perror("shutdown");
24 + perror("reboot");
25 return -1;