Mercurial > hg > aboriginal
diff sources/root-filesystem/sbin/init.sh @ 1215:224038785a93
Add a fallback if /proc/cmdline doesn't produce a console= entry.
author | Rob Landley <rob@landley.net> |
---|---|
date | Thu, 19 Aug 2010 12:50:32 -0500 |
parents | 2b3f347dd225 |
children | 1a24dc2bb3cb |
line wrap: on
line diff
--- a/sources/root-filesystem/sbin/init.sh Wed Aug 18 17:11:32 2010 -0500 +++ b/sources/root-filesystem/sbin/init.sh Thu Aug 19 12:50:32 2010 -0500 @@ -54,6 +54,7 @@ fi CONSOLE="$(sed -n 's@.* console=\(/dev/\)*\([^ ]*\).*@\2@p' /proc/cmdline)" + [ -z "$CONSOLE" ] && CONSOLE=/dev/console if [ -z "$DISTCC_HOSTS" ] then