[generic]: add 3.7-rc6 support (patch 820 still has to be fixed)
[openwrt.git] / target / linux / generic / patches-3.7 / 921-use_preinit_as_init.patch
1 --- a/init/main.c
2 +++ b/init/main.c
3 @@ -834,10 +834,7 @@ static int __ref kernel_init(void *unuse
4                 printk(KERN_WARNING "Failed to execute %s.  Attempting "
5                                         "defaults...\n", execute_command);
6         }
7 -       if (!run_init_process("/sbin/init") ||
8 -           !run_init_process("/etc/init") ||
9 -           !run_init_process("/bin/init") ||
10 -           !run_init_process("/bin/sh"))
11 +       if (!run_init_process("/etc/preinit"))
12                 return 0;
13  
14         panic("No init found.  Try passing init= option to kernel. "