1
0

startup.patch 761 B

1234567891011121314151617181920
  1. diff -Nur linux-2.6.30.5.orig/init/main.c linux-2.6.30.5/init/main.c
  2. --- linux-2.6.30.5.orig/init/main.c 2009-08-16 23:19:38.000000000 +0200
  3. +++ linux-2.6.30.5/init/main.c 2009-08-22 20:26:39.000000000 +0200
  4. @@ -811,7 +811,7 @@
  5. numa_default_policy();
  6. if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0)
  7. - printk(KERN_WARNING "Warning: unable to open an initial console.\n");
  8. + printk(KERN_WARNING "Starting Linux (build with OpenADK).\n");
  9. (void) sys_dup(0);
  10. (void) sys_dup(0);
  11. @@ -835,6 +835,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");