#!/bin/bash
# 09730-i128-generic.sh
# Number Nine Imagine 128 generic

XORG_CONF="$1"

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

[ "$PCI_VENDOR_ID" = "105d" ] || exit 1

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

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