diff options
Diffstat (limited to 'src/scripts/13hack.sh')
-rw-r--r-- | src/scripts/13hack.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/scripts/13hack.sh b/src/scripts/13hack.sh index bd3a33537..1f7b57a58 100644 --- a/src/scripts/13hack.sh +++ b/src/scripts/13hack.sh @@ -12,9 +12,12 @@ Hack_xorg () { # xserver-xorg << 7.1 - if [ -f "${LIVE_CHROOT}/etc/X11/xorg.conf" ] && [ "${LIVE_DISTRIBUTION}" = "testing" ] + if [ -f "${LIVE_CHROOT}/etc/X11/xorg.conf" ] then - # Comment "BusID" line and set driver to "vesa" - sed -i -e 's/\(^.*BusID.*\)/#\1/g' -e '/Section "Device"/,/EndSection/ s/\(.*Driver.*"\).*\(".*\)/\1vesa\2/g' "${LIVE_CHROOT}"/etc/X11/xorg.conf + if [ "${LIVE_DISTRIBUTION}" = "testing" ] || [ "${LIVE_DISTRIBUTION}" = "${CODENAME_TESTING}" ] + then + # Comment "BusID" line and set driver to "vesa" + sed -i -e 's/\(^.*BusID.*\)/#\1/g' -e '/Section "Device"/,/EndSection/ s/\(.*Driver.*"\).*\(".*\)/\1vesa\2/g' "${LIVE_CHROOT}"/etc/X11/xorg.conf + fi fi } |