#!/bin/sh
HUAON_KO_PATH="/usr/src/"
#HUAON_KO_PATH="/lib/modules/4.19.34-2-arm64-2deepin-generic/extra/"
/sbin/lsmod | /bin/grep hid_kye 
if [ $? -eq 0 ]; then
	/bin/echo "found hid-key driver, remove it first"
	/sbin/rmmod hid_kye
fi
/sbin/lsmod | /bin/grep hid_viewsonic 
if [ $? -eq 0 ]; then
	/sbin/rmmod hid_viewsonic
fi
/sbin/lsmod | /bin/grep hid_uclogic
if [ $? -eq 0 ]; then
	/bin/echo "found hid-uclogic driver, remove it first"
	/sbin/rmmod hid_uclogic
fi
/sbin/lsmod | /bin/grep hid_polostar
if [ $? -eq 0 ]; then
	/sbin/rmmod hid_polostar
fi
/sbin/insmod ${HUAON_KO_PATH}hid-kye.ko
/sbin/insmod ${HUAON_KO_PATH}hid-polostar.ko
/sbin/insmod ${HUAON_KO_PATH}hid-uclogic.ko
/sbin/insmod ${HUAON_KO_PATH}hid-viewsonic.ko
