From: Fabio Erculiani <lxnay@sabayon.org>
Date: Tue, 4 Jan 2011 22:20:19 +0000 (+0100)
Subject: Add compatibility with older cmdline setup on console argument
X-Git-Tag: v3.4.12~1^2~5
X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2abd9c2742e035667b4cfebf1be50be4d83595fd;p=genkernel.git

Add compatibility with older cmdline setup on console argument

Older systems featured full path to tty inside console=. This
is no longer valid and causes issues with fbcondecor. The new
expected format of console= is tty name with the directory part
stripped off: console=tty1 for example.
This patch has been in sabayon's genkernel for <2 years, but
should be tested out on non-standard environments.
---

diff --git a/defaults/linuxrc b/defaults/linuxrc
index 9e40b31..0083fce 100755
--- a/defaults/linuxrc
+++ b/defaults/linuxrc
@@ -135,6 +135,7 @@ do
 		# Redirect output to a specific tty
 		CONSOLE\=*|console\=*)
 			CONSOLE=`parse_opt "${x}"`
+			CONSOLE=`basename ${CONSOLE}`
 #			exec >${CONSOLE} <${CONSOLE} 2>&1
 		;;
 		# /dev/md