mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-01 02:21:53 +08:00
修复 otg 无法使用问题
This commit is contained in:
15
configs/kvmd/clean_when_exit.sh
Executable file
15
configs/kvmd/clean_when_exit.sh
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
cleanup() {
|
||||
if [ "$OTG" == "1" ]; then
|
||||
echo "Trying exit OTG Port..."
|
||||
python -m kvmd.apps.otg stop
|
||||
fi
|
||||
exit 0
|
||||
}
|
||||
|
||||
trap cleanup SIGTERM
|
||||
|
||||
while true; do
|
||||
sleep 3600
|
||||
done
|
||||
Reference in New Issue
Block a user