#! /vendor/bin/sh
RILTYPE=$(/vendor/bin/getprop "persist.sys.ril.type")

if [ "$RILTYPE" = "QMI" ]
then
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/usb/serial/sierra.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/net/usb/GobiNet.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/usb/class/cdc-wdm.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/net/usb/cdc_ncm.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/net/usb/cdc_mbim.ko
elif [ "$RILTYPE" = "HL" ]
then
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/net/usb/cdc_ncm.ko
elif [ "$RILTYPE" = "AT" ]
then
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/usb/serial/sierra.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/net/usb/sierra_net.ko
elif [ "$RILTYPE" = "AR" ]
then
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/usb/serial/sierra.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/net/usb/GobiNet.ko
else
    # default use QMI RIL
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/usb/serial/sierra.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/net/usb/GobiNet.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/usb/class/cdc-wdm.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/net/usb/cdc_ncm.ko
    insmod /vendor/lib/modules/4.9.77-svn/kernel/drivers/net/usb/cdc_mbim.ko
    
fi

