修复 otg 无法使用问题

This commit is contained in:
mofeng-git
2024-09-20 21:22:58 +08:00
parent d7a9f0c969
commit 8aee3ac70d
3 changed files with 33 additions and 1 deletions

View File

@@ -134,7 +134,12 @@ fi
if [ "$OTG" == "1" ]; then
echo "Trying OTG Port..."
python -m kvmd.apps.otg start
if [ -f /dev/hidg0 ] && [ -f /dev/hidg1 ]; then
ln -s /dev/hidg1 /dev/kvmd-hid-mouse && ln -s /dev/hidg0 /dev/kvmd-hid-keyboard
fi
fi
echo -e "${GREEN}One-KVM starting...${NC}"
exec supervisord -c /etc/kvmd/supervisord.conf