mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
fix otg support
This commit is contained in:
9
configs/kvmd/init.sh
Normal file → Executable file
9
configs/kvmd/init.sh
Normal file → Executable 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
|
||||
Reference in New Issue
Block a user