mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
增强 OTG 模式容错
This commit is contained in:
@@ -10,8 +10,8 @@ cleanup() {
|
||||
if [ "$OTG" == "1" ]; then
|
||||
echo "Trying exit OTG Port..." \
|
||||
&& python -m kvmd.apps.otg stop \
|
||||
&& rm -r /run/kvmd/otg \
|
||||
|| echo -e "${RED}Failed to exit OTG Port${NC}"
|
||||
rm -r /run/kvmd/otg
|
||||
fi
|
||||
exit 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user