slitaz-boot-scripts rev 268

system.sh: add console= parameter
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 18 21:45:02 2011 +0200 (2011-05-18)
parents f922801566b2
children 464ba1f4299a
files etc/init.d/system.sh
line diff
     1.1 --- a/etc/init.d/system.sh	Tue May 17 15:10:21 2011 +0200
     1.2 +++ b/etc/init.d/system.sh	Wed May 18 21:45:02 2011 +0200
     1.3 @@ -12,6 +12,9 @@
     1.4  for opt in $(cat /proc/cmdline)
     1.5  do
     1.6  	case $opt in
     1.7 +		console=*)
     1.8 +			sed -i "s/tty1/${opt#console=}/g;/^tty[2-9]::/d" \
     1.9 +				/etc/inittab ;;
    1.10  		sound=*)
    1.11  			DRIVER=${opt#sound=} ;;
    1.12  		xarg=*)