startup.patch 729 B

1234567891011121314151617181920
  1. diff -Nur linux-2.6.32.orig/init/main.c linux-2.6.32/init/main.c
  2. --- linux-2.6.32.orig/init/main.c 2009-12-03 04:51:21.000000000 +0100
  3. +++ linux-2.6.32/init/main.c 2010-01-31 11:01:41.154334301 +0100
  4. @@ -814,6 +814,8 @@
  5. if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
  6. printk(KERN_WARNING "Warning: unable to open an initial console.\n");
  7. + printk(KERN_WARNING "Starting Linux (build with OpenADK).\n");
  8. +
  9. (void) sys_dup(0);
  10. (void) sys_dup(0);
  11. @@ -836,6 +838,7 @@
  12. printk(KERN_WARNING "Failed to execute %s. Attempting "
  13. "defaults...\n", execute_command);
  14. }
  15. + run_init_process("/init");
  16. run_init_process("/sbin/init");
  17. run_init_process("/etc/init");
  18. run_init_process("/bin/init");