#!/bin/bash
# 09050-trident-generic.sh
# Trident generic

XORG_CONF="$1"

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

[ "$PCI_VENDOR_ID" = "1023" ] || exit 1

logger -t retrodebian-xorg-autoconfig "Configuring Trident trident for $PCI_DEVICE_NAME [$PCI_DEVICE_ID]"

sed -i -e 's|{DeviceDriver}|trident|g' "$XORG_CONF" || exit 2
exit 0