diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-18 11:28:54 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2014-02-18 11:28:54 +0100 |
commit | 648ffb1bc515c65c97b964edb0054db83840f163 (patch) | |
tree | b414cff5bf5bf8b63f04108d8cebf815620b9298 /target/linux/patches/3.13.3/startup.patch | |
parent | f9e8a355d7ff88bae17ea9f2198fbf3f990cd1bc (diff) | |
parent | 937802ab6844351a530711d4363fd3842a482d4b (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'target/linux/patches/3.13.3/startup.patch')
-rw-r--r-- | target/linux/patches/3.13.3/startup.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/target/linux/patches/3.13.3/startup.patch b/target/linux/patches/3.13.3/startup.patch new file mode 100644 index 000000000..bfe3ae6ec --- /dev/null +++ b/target/linux/patches/3.13.3/startup.patch @@ -0,0 +1,22 @@ +diff -Nur linux-3.13.3.orig/init/main.c linux-3.13.3/init/main.c +--- linux-3.13.3.orig/init/main.c 2014-02-13 23:00:14.000000000 +0100 ++++ linux-3.13.3/init/main.c 2014-02-17 11:35:14.000000000 +0100 +@@ -871,7 +871,8 @@ + pr_err("Failed to execute %s (error %d). Attempting defaults...\n", + execute_command, ret); + } +- if (!try_to_run_init_process("/sbin/init") || ++ if (!try_to_run_init_process("/init") || ++ !try_to_run_init_process("/sbin/init") || + !try_to_run_init_process("/etc/init") || + !try_to_run_init_process("/bin/init") || + !try_to_run_init_process("/bin/sh")) +@@ -916,6 +917,8 @@ + if (sys_open((const char __user *) "/dev/console", O_RDWR, 0) < 0) + pr_err("Warning: unable to open an initial console.\n"); + ++ printk(KERN_WARNING "Starting Linux (built with OpenADK).\n"); ++ + (void) sys_dup(0); + (void) sys_dup(0); + /* |