Mercurial > hg > aboriginal
changeset 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 | cfcb4ee310b0 |
children | 45889d1397c1 |
files | sources/root-filesystem/sbin/init.sh |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
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