summaryrefslogtreecommitdiff
path: root/src/scripts/13hack.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/scripts/13hack.sh')
-rw-r--r--src/scripts/13hack.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/scripts/13hack.sh b/src/scripts/13hack.sh
index bd3a335..1f7b57a 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
}