[scripts] add "video=vesafb:ywrap,mtrr:3" to cmdline only if KMS is disabled by default

This commit is contained in:
Fabio Erculiani 2012-01-18 14:05:53 +01:00
parent 9880eae808
commit 8a83c96bcf

View File

@ -30,6 +30,9 @@ kms_string=""
if [ -f "${CHROOT_DIR}/.enable_kms" ]; then
rm "${CHROOT_DIR}/.enable_kms"
kms_string="radeon.modeset=1"
else
# enable vesafb-tng then
kms_string="video=vesafb:ywrap,mtrr:3"
fi
sed -i "s/__KMS__/${kms_string}/g" "${isolinux_destination}"