load_stapi_drivers()
{
exists=grep "stapi_core" /proc/modules | sed 's/^\([a-zA-Z_0-9]*\) .*$/\1/'
if [ "x$exists" != "x" ]; then
echo "* Stapi modules already installed"
else
source $PWD_DIR/load_modules.sh "no_stapi_ioctl"
# TEL_CHANGES start
if [ -f $PWD_DIR/stscart_core.ko ]; then
insmod $PWD_DIR/stscart_core.ko
fi
# TEL_CHANGES end
# LOAD CA driver modules
if [ "$DVD_BACKEND" = "xxxx" ] ; then
if [ "$SUPPORT_CA" = "TRUE" ] ; then
insmod $PWD_DIR/sttkd_proxy.ko
if [ "$CDI_SECURITY" = "NDS_VIDEOGUARD" ]; then
insmod $PWD_DIR/sticam_cdi.ko
else
if [ "$CDI_SECURITY" = "NDS_NSK" ]; then
insmod $PWD_DIR/stapler_core.ko
insmod $PWD_DIR/stfuse_core.ko
insmod $PWD_DIR/stnsk2_core.ko
fi
fi
insmod $PWD_DIR/strasp_core.ko
fi
else
insmod $PWD_DIR/stapler_core.ko
insmod $PWD_DIR/sttkdma_core.ko
if [ "$DVD_SERVICE" = "NDS" ] ; then
echo "* Inserting NDS-CA drivers"
insmod $PWD_DIR/stsectoolfuse_core.ko
insmod $PWD_DIR/sticam_cdi.ko
insmod $PWD_DIR/strasp_core.ko
else
echo "* Inserting DVB-CA drivers"
insmod $PWD_DIR/sttkdma_ioctl.ko
if [ -f $PWD_DIR/stsectoolfuse_core.ko ]; then
insmod $PWD_DIR/stsectoolfuse_core.ko
fi
if [ -f $PWD_DIR/stsectoolfuse_ioctl.ko ]; then
insmod $PWD_DIR/stsectoolfuse_ioctl.ko
fi
fi
fi
if [ "$CDI_SUPPORT_LOW_POWER" = "1" ]; then
echo "* Inserting stpower_ioctl driver"
insmod $PWD_DIR/stpower_ioctl.ko
fi
fi
}
load_stapi_drivers