# This script forces the VESA driver for the AMD Geode GX2
# It cannot be autodetected by upstream X.org currently (LP: #327484)
# This is an Ubuntu specific workaround

if [ -z "$XSERVER" ] && [ -n "$(PATH=/sbin:/usr/sbin:/bin:/usr/bin lspci -n |grep 100b:0030)" ]; then
    . /etc/lsb-release
    if [ "${DISTRIB_RELEASE}" = "9.04" ]; then
        XSERVER=vesa
    elif [ "${DISTRIB_RELEASE}" = "9.10" ]; then
        XSERVER=geode
    else
        XSERVER=geode
        export X_DEVICE_OPTION_01='"AccelMethod" "XAA"'
    fi
fi
