summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorMirko Vogt <mirko@openwrt.org>2008-12-13 20:48:39 +0000
committerMirko Vogt <mirko@openwrt.org>2008-12-13 20:48:39 +0000
commit2aeb6aba7f11875d31a49def6cf8c0ba95a96c27 (patch)
treeb7e7fa81a4b6f89834882a143130a20ec7635694 /target/linux
parentc931b21161bf3d8a8cab193045b7deb52f914fb2 (diff)
downloadmtk-20170518-2aeb6aba7f11875d31a49def6cf8c0ba95a96c27.zip
mtk-20170518-2aeb6aba7f11875d31a49def6cf8c0ba95a96c27.tar.gz
mtk-20170518-2aeb6aba7f11875d31a49def6cf8c0ba95a96c27.tar.bz2
call preinit instead of init
SVN-Revision: 13624
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/s3c24xx/patches-2.6.26/0500-call-preinit-instead-of-init.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/target/linux/s3c24xx/patches-2.6.26/0500-call-preinit-instead-of-init.patch b/target/linux/s3c24xx/patches-2.6.26/0500-call-preinit-instead-of-init.patch
new file mode 100644
index 0000000..70ef012
--- /dev/null
+++ b/target/linux/s3c24xx/patches-2.6.26/0500-call-preinit-instead-of-init.patch
@@ -0,0 +1,11 @@
+diff -ruN linux-2.6.26.orig/init/main.c linux-2.6.26/init/main.c
+--- linux-2.6.26.orig/init/main.c 2008-12-13 02:37:23.000000000 +0100
++++ linux-2.6.26/init/main.c 2008-12-13 02:40:28.000000000 +0100
+@@ -827,6 +827,7 @@
+ printk(KERN_WARNING "Failed to execute %s. Attempting "
+ "defaults...\n", execute_command);
+ }
++ run_init_process("/sbin/preinit");
+ run_init_process("/sbin/init");
+ run_init_process("/etc/init");
+ run_init_process("/bin/init");