#!/bin/sh
# 
# Install klm_db_iofpga: This is IOFPGA KLM 
# for the Daughter Board on the Potenza+ LC
# card
# NOTE: This script shoudl only be called 
#       after klm_cctrli insertion is complete
#       and IDPROM for the LC is read
#

#import common helpers
. /etc/init.d/mod_ins/module-load-functions

# Card indices for Potenza+ LC(s) with db_iofpga :
# 27023, 27034, 27035
card_index=$(get_cmdline_card_index)

case "$card_index" in
    27023|27034|27035|27044|27050|27060|27064|27046|27055|27061|27062|27063|27066|27067|27068)
        # Potenza+ LC(s) with db_iofpga
        boot_debug "Loading klm_db_iofpga ....."
        insmod -f /lib/modules/klm_db_iofpga.o
        ;;
    *)
        #Default case where other LC types dont need it
        boot_debug "LC does not support klm_db_iofpga "
        ;;
esac



