1
0

startup.patch 834 B

12345678910111213141516171819202122
  1. diff -Nur linux-3.7.3.orig/init/main.c linux-3.7.3/init/main.c
  2. --- linux-3.7.3.orig/init/main.c 2013-01-17 17:47:40.000000000 +0100
  3. +++ linux-3.7.3/init/main.c 2013-01-19 15:08:13.000000000 +0100
  4. @@ -834,7 +834,8 @@
  5. printk(KERN_WARNING "Failed to execute %s. Attempting "
  6. "defaults...\n", execute_command);
  7. }
  8. - if (!run_init_process("/sbin/init") ||
  9. + if (!run_init_process("/init") ||
  10. + !run_init_process("/sbin/init") ||
  11. !run_init_process("/etc/init") ||
  12. !run_init_process("/bin/init") ||
  13. !run_init_process("/bin/sh"))
  14. @@ -879,6 +880,8 @@
  15. if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
  16. printk(KERN_WARNING "Warning: unable to open an initial console.\n");
  17. + printk(KERN_WARNING "Starting Linux (built with OpenADK).\n");
  18. +
  19. (void) sys_dup(0);
  20. (void) sys_dup(0);
  21. /*