#!/bin/bash
# 09500-siliconmotion-generic.sh
# Silicon Motion generic

XORG_CONF="$1"

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

[ "$PCI_VENDOR_ID" = "126f" ] || exit 1

logger -t retrodebian-xorg-autoconfig "Configuring Silicon Motion siliconmotion for $PCI_DEVICE_NAME [$PCI_DEVICE_ID]"

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