#!/bin/bash
# 09400-chips-generic.sh
# Chips and Technologies generic

XORG_CONF="$1"

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

[ "$PCI_VENDOR_ID" = "102c" ] || exit 1

logger -t retrodebian-xorg-autoconfig "Configuring Chips chips for $PCI_DEVICE_NAME [$PCI_DEVICE_ID]"

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