mirror of
https://github.com/sipeed/LicheeRV-Nano-Build.git
synced 2026-11-09 18:04:55 -06:00
30 lines
724 B
Bash
Executable File
30 lines
724 B
Bash
Executable File
#!/bin/sh
|
|
|
|
if [ "$1" = "start" ]
|
|
then
|
|
. /etc/profile
|
|
panel_value=""
|
|
if [ -e /boot/board ]
|
|
then
|
|
panel_value=$(grep '^panel=' /boot/board | cut -d '=' -f 2)
|
|
elif [ -e /boot/uEnv.txt ]
|
|
then
|
|
panel_value=$(grep '^panel=' /boot/uEnv.txt | cut -d '=' -f 2)
|
|
fi
|
|
if [ "$panel_value" = "st7701_lct024bsi20" ] # MaixCAM-Pro
|
|
then
|
|
echo "load cst7xx touchscreen driver"
|
|
insmod /mnt/system/ko/hynitron_touch_new.ko
|
|
elif [ "$panel_value" = "st7701_hd228001c31" ] # MaixCAM
|
|
then
|
|
echo "load cst3xx touchscreen driver"
|
|
insmod /mnt/system/ko/hynitron_touch.ko
|
|
fi
|
|
elif [ "$panel_value" = "mtd700920b" ] # 7-inch touchscreen
|
|
then
|
|
echo "load gt9xx touchscreen driver"
|
|
insmod /mnt/system/ko/3rd/gt9xx.ko
|
|
fi
|
|
exit 0
|
|
fi
|