procd has the habit of logging startup/shutdown via
rcS to syslog, which is pointless in case of a
shutdown, and unlikely to be complete on a startup
(as syslog is not running). Write to the console
instead.
Signed-off-by: Michel Stam <m.stam@fugro.nl>
Signed-off-by: John Crispin <blogic@openwrt.org>
*newline = 0;
len = newline + 1 - str;
syslog(0, "%s", str);
+#ifdef SHOW_BOOT_ON_CONSOLE
+ fprintf(stderr, "%s\n", str);
+#endif
ustream_consume(s, len);
} while (1);
}