1
0

startup.patch 732 B

1234567891011121314151617181920
  1. diff -Nur linux-2.6.34.orig/init/main.c linux-2.6.34/init/main.c
  2. --- linux-2.6.34.orig/init/main.c 2010-05-16 23:17:36.000000000 +0200
  3. +++ linux-2.6.34/init/main.c 2010-05-20 20:13:26.321613615 +0200
  4. @@ -842,6 +842,7 @@
  5. printk(KERN_WARNING "Failed to execute %s. Attempting "
  6. "defaults...\n", execute_command);
  7. }
  8. + run_init_process("/init");
  9. run_init_process("/sbin/init");
  10. run_init_process("/etc/init");
  11. run_init_process("/bin/init");
  12. @@ -889,6 +890,8 @@
  13. if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
  14. printk(KERN_WARNING "Warning: unable to open an initial console.\n");
  15. + printk(KERN_WARNING "Starting Linux (built with OpenADK).\n");
  16. +
  17. (void) sys_dup(0);
  18. (void) sys_dup(0);
  19. /*