#!/bin/sh
# 
# Install klm_stats_fpga: This is STATS FPGA KLM 
# for Jericho+/J2 external statistics.
#

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

# ====================================== 
# Card index for Stats FPGA Board.
# Peyto Scale Chassis = 27030
# Peyto SE ITEMP CC Chassis = 60001 
# Potenza+ MOD Line Card Scale = 27035
# ====================================== 
card_index=$(get_cmdline_card_index)

case "$card_index" in
    27030|27035|60001|27066|27067)
        # Peyto Scale Chassis, Potenza+ MOD Line Card Scale
        boot_debug "Loading stats fpga ....."
        insmod -f /lib/modules/klm_stats_fpga.o
        ;;
    *)
        #Default case where other board types dont need it
        boot_debug "Board does not support klm_stats_fpga "
        ;;
esac

