diff options
author | Roman Yeryomin <roman@advem.lv> | 2012-09-13 00:40:35 +0300 |
---|---|---|
committer | Roman Yeryomin <roman@advem.lv> | 2013-05-26 00:44:46 +0300 |
commit | a27354c9021a8423ef8c7d2bffad49cbf639eec1 (patch) | |
tree | 2355929a4b8cf1888cd0797cfabdb42e0077c524 /target/linux/realtek/patches-2.6.30/999-use_preinit_as_init.patch | |
parent | 24a776baeb5d3cd903b144c89ceb11c5bc36a49e (diff) |
Add realtek target files
Signed-off-by: Roman Yeryomin <roman@advem.lv>
Diffstat (limited to 'target/linux/realtek/patches-2.6.30/999-use_preinit_as_init.patch')
-rw-r--r-- | target/linux/realtek/patches-2.6.30/999-use_preinit_as_init.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/realtek/patches-2.6.30/999-use_preinit_as_init.patch b/target/linux/realtek/patches-2.6.30/999-use_preinit_as_init.patch new file mode 100644 index 000000000..8c34d2418 --- /dev/null +++ b/target/linux/realtek/patches-2.6.30/999-use_preinit_as_init.patch @@ -0,0 +1,16 @@ +Index: linux-2.6.30.9/init/main.c +=================================================================== +--- linux-2.6.30.9.orig/init/main.c ++++ linux-2.6.30.9/init/main.c +@@ -840,10 +840,7 @@ static noinline int init_post(void) + printk(KERN_WARNING "Failed to execute %s. Attempting " + "defaults...\n", execute_command); + } +- run_init_process("/sbin/init"); +- run_init_process("/etc/init"); +- run_init_process("/bin/init"); +- run_init_process("/bin/sh"); ++ run_init_process("/etc/preinit"); + + panic("No init found. Try passing init= option to kernel."); + } |