#!/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 indices for VigorLS+ LC(s) with db_iofpga :
# 27069, 27070
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|27069|27070)
        boot_debug "Loading klm_db_iofpga ....."
        modprobe klm_db_iofpga
        ;;
    *)
        #Default case where other LC types dont need it
        boot_debug "LC does not support klm_db_iofpga "
        ;;
esac



