Subversion Repositories livecd

Rev

Rev 71 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 71 Rev 72
Line 335... Line 335...
335
		--set-resolution=$SCREEN \
335
		--set-resolution=$SCREEN \
336
		--set-hsync=$HSYNC \
336
		--set-hsync=$HSYNC \
337
		--set-vsync=$VSYNC \
337
		--set-vsync=$VSYNC \
338
		$video_driver | grep Trying
338
		$video_driver | grep Trying
339
 
339
 
340
            # system-config-display in SL5 does not really work :-(
340
            # system-config-display in SL5 does not work nicely :-(
341
            # e.g. no Monitor and resolution set
341
            # e.g. No Monitor Section
342
 
342
 
343
	    # add Monitor Section and add Monitor0 to Screen Section
343
	    # add Monitor Section and add Monitor0 to Screen Section
344
	    grep -q Monitor $XORG_CONF
344
	    grep -q Monitor $XORG_CONF
345
	    if [ "$" != "0" ]; then
345
	    if [ "$?" != "0" ]; then
346
		echo    "Section \"Monitor\""          >> $XORG_CONF
346
		echo    "Section \"Monitor\""          >> $XORG_CONF
347
		echo -e "\tIdentifier   \"Monitor0\""  >> $XORG_CONF
347
		echo -e "\tIdentifier   \"Monitor0\""  >> $XORG_CONF
348
		echo -e "\tHorizSync    $HSYNC"        >> $XORG_CONF
348
		echo -e "\tHorizSync    $HSYNC"        >> $XORG_CONF
349
		echo -e "\tVertRefresh  $VSYNC"        >> $XORG_CONF
349
		echo -e "\tVertRefresh  $VSYNC"        >> $XORG_CONF
350
		echo -e "\tOption       \"dpms\""      >> $XORG_CONF
350
		echo -e "\tOption       \"dpms\""      >> $XORG_CONF
351
		echo -e "EndSection"                   >> $XORG_CONF
351
		echo -e "EndSection"                   >> $XORG_CONF
352
                sed -i "s|Device     \"Videocard0\"|Device     \"Videocard0\"\n\tMonitor    \"Monitor0\"|" $XORG_CONF
352
                sed -i "s|Device     \"Videocard0\"|Device     \"Videocard0\"\n\tMonitor    \"Monitor0\"|" $XORG_CONF
353
	    fi
353
	    fi
354
 
354
 
355
            # add Modes for $SCREEN
355
            # add Modes for $SCREEN, if not yet there
356
	    grep -q Modes $XORG_CONF
356
	    grep -q Modes $XORG_CONF
357
	    if [ "$" != "0" ]; then
357
	    if [ "$?" != "0" ]; then
358
		modeline=$( echo ${MODES_DEFAULT} | sed "s|.*\"$SCREEN|\"$SCREEN|" )
358
		modeline=$( echo ${MODES_DEFAULT} | sed "s|.*\"$SCREEN|\"$SCREEN|" )
359
		if [ "$modeline" ]; then
359
		if [ "$modeline" ]; then
360
		    sed -i "s|\tDepth.*|\tDepth     24\n\t\tModes $modeline|" $XORG_CONF
360
		    sed -i "s|\tDepth.*|\tDepth     24\n\t\tModes $modeline|" $XORG_CONF
361
		fi
361
		fi
362
	    fi
362
	    fi
363
 
363
 
-
 
364
 
364
	# simple Xserver configuration.
365
	# simple Xserver configuration.
365
	else
366
	else
366
	    echo "Use simple Xserver configuration."
367
	    echo "Use simple Xserver configuration."
367
	    system-config-display --noui --reconfig -v | grep Trying
368
	    system-config-display --noui --reconfig -v | grep Trying
368
	fi
369
	fi