#!/bin/sh -e

# Make sure the ath_pci module exists, start the script and put its output to
# modalias_override/ath_hal.

echo "# Listing generated by ath_hal_supported. Do not edit manually."

/sbin/modinfo -F alias ath_pci | sort | while read pattern; do
    case "$pattern" in
    pci:*|usb:*)
        echo "alias $pattern ath_hal"
        ;;
    esac
done
