mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 09:10:30 +08:00
15 lines
209 B
Bash
Executable File
15 lines
209 B
Bash
Executable File
#!/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 |