diff options
Diffstat (limited to 'packages/linux/montavista-sa-2.4.17-mvl21/remove-montavista-init-stupidity.patch')
-rw-r--r-- | packages/linux/montavista-sa-2.4.17-mvl21/remove-montavista-init-stupidity.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packages/linux/montavista-sa-2.4.17-mvl21/remove-montavista-init-stupidity.patch b/packages/linux/montavista-sa-2.4.17-mvl21/remove-montavista-init-stupidity.patch index e69de29bb2..0fd0a96659 100644 --- a/packages/linux/montavista-sa-2.4.17-mvl21/remove-montavista-init-stupidity.patch +++ b/packages/linux/montavista-sa-2.4.17-mvl21/remove-montavista-init-stupidity.patch @@ -0,0 +1,23 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- linux-2.4.17_mvl21/init/main.c~remove-montavista-init-stupidity ++++ linux-2.4.17_mvl21/init/main.c +@@ -852,15 +852,11 @@ + * trying to recover a really broken machine. + */ + +-#ifndef CONFIG_SA1100_BEAGLE + if (execute_command) + execve(execute_command,argv_init,envp_init); + execve("/sbin/init",argv_init,envp_init); + execve("/etc/init",argv_init,envp_init); + execve("/bin/init",argv_init,envp_init); +-#else +- strcpy( argv_init[0], "--login" ); +-#endif + execve("/bin/sh",argv_init,envp_init); + panic("No init found. Try passing init= option to kernel."); + } |