mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
fix
This commit is contained in:
@@ -1,9 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
YELLOW='\033[0;33m'
|
||||
BLUE='\033[0;34m'
|
||||
NC='\033[0m'
|
||||
|
||||
cleanup() {
|
||||
if [ "$OTG" == "1" ]; then
|
||||
echo "Trying exit OTG Port..."
|
||||
python -m kvmd.apps.otg stop
|
||||
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}"
|
||||
fi
|
||||
exit 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user