自动挂载 libcomposite 模块

This commit is contained in:
mofeng-git
2024-09-26 18:19:40 +08:00
parent 7e6cb6d7b3
commit ced23f2cdf
2 changed files with 4 additions and 3 deletions

View File

@@ -124,8 +124,9 @@ fi
#Trying usb_gadget
if [ "$OTG" == "1" ]; then
echo "Trying OTG Port..." \
&& python -m kvmd.apps.otg start \
echo "Trying OTG Port..."
modprobe libcomposite || echo -e "${RED}Linux libcomposite module modprobe failed.${NC}"
python -m kvmd.apps.otg start \
&& ln -s /dev/hidg1 /dev/kvmd-hid-mouse \
&& ln -s /dev/hidg0 /dev/kvmd-hid-keyboard \
|| echo -e "${RED}OTG Port mount failed.${NC}"