slitaz-boot-scripts diff etc/init.d/hwconf.sh @ rev 40

Enhanced screen= kernel parameter
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 25 21:59:53 2008 +0000 (2008-02-25)
parents 8d77d0bba811
children 3da6316620ef
line diff
     1.1 --- a/etc/init.d/hwconf.sh	Sat Feb 23 19:10:03 2008 +0100
     1.2 +++ b/etc/init.d/hwconf.sh	Mon Feb 25 21:59:53 2008 +0000
     1.3 @@ -42,5 +42,16 @@
     1.4  
     1.5  # Screen size config for slim/Xvesa.
     1.6  if [ ! -f /etc/X11/screen.conf -a -x /usr/bin/slim ]; then
     1.7 -	tazx
     1.8 +	if grep -q "screen=*" /proc/cmdline; then
     1.9 +		export NEW_SCREEN=`cat /proc/cmdline | sed 's/.*screen=\([^ ]*\).*/\1/'`
    1.10 +		if [ "$NEW_SCREEN" = "text" ]; then
    1.11 +			echo -n "Disabling X login manager: slim..."
    1.12 +			sed -i s/'slim'/''/ /etc/rcS.conf
    1.13 +			status
    1.14 +		else
    1.15 +			tazx
    1.16 +		fi
    1.17 +	else
    1.18 +		tazx
    1.19 +	fi
    1.20  fi