fix otg support

This commit is contained in:
mofeng-git
2024-09-07 22:16:15 +08:00
parent af79834cc7
commit 2608241bb6
3 changed files with 10 additions and 6 deletions

9
configs/kvmd/init.sh Normal file → Executable file
View File

@@ -25,7 +25,10 @@ redirect_stderr=true
EOF
fi
if [ -d /sys/kernel/config/usb_gadget/kvmd ]; then
echo "Usb_gadget kvmd exists,delete it."
python -m kvmd.apps.otg stop
echo "Usb_gadget kvmd exists,please reboot your host system."
elif [ ! -d /sys/kernel/config/usb_gadget ]; then
mount -t configfs none /sys/kernel/config
fi
fi
fi
supervisord -c /etc/kvmd/supervisord.conf