summaryrefslogtreecommitdiff
path: root/packages/linux/montavista-sa-2.4.17-mvl21/remove-montavista-init-stupidity.patch
blob: 0fd0a966596186c026a672655d7bc642fb07dd87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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.");
 }