Allow the redboot supplied command line to be append (#2089)
[openwrt.git] / target / linux / atheros-2.6 / files / arch / mips / atheros / prom.c
index 45f4db9..36d78b8 100644 (file)
@@ -27,6 +27,7 @@
 
 void __init prom_init(void)
 {
+       char **argv;
 
        mips_machgroup = MACH_GROUP_ATHEROS;
        mips_machtype = -1;
@@ -34,7 +35,9 @@ void __init prom_init(void)
        DO_AR5312(ar5312_prom_init();)
        DO_AR5315(ar5315_prom_init();)
 
-       strcpy(arcs_cmdline, "console=ttyS0,9600 rootfstype=squashfs,jffs2 init=/etc/preinit");
+       argv = (char **)fw_arg1;
+       /* RedBoot desired command line is argv[1] */ 
+       strcat(arcs_cmdline, argv[1]);
 }
 
 void __init prom_free_prom_memory(void)
This page took 0.0226 seconds and 4 git commands to generate.