#!/bin/bash
# 09750-nsc-generic.sh
# National Semiconductor / Geode generic

XORG_CONF="$1"

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

case "$PCI_VENDOR_ID" in
    100b|1078)
        ;;
    *)
        exit 1
        ;;
esac

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

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