#!/bin/bash
# 9999-vesa-fallback.sh
# generic fallback, always matches

XORG_CONF="$1"

[ -n "$XORG_CONF" ] || exit 2
[ -f "$XORG_CONF" ] || exit 2

logger -t retrodebian-xorg-autoconfig "Configuring generic vesa fallback for $PCI_DEVICE_NAME [$PCI_DEVICE_ID]"

sed -i \
    -e "s|{DeviceDriver}|vesa|g" \
    "$XORG_CONF" || exit 2

exit 0