One-KVM/kvmd_data/etc/kvmd/custom_atx/usbrelay_hid.sh
mofeng-git d5a0b1a8b3 初步整合:
1. python 内置服务器
2. 将配置文件统一目录
2025-01-01 14:26:22 +00:00

20 lines
471 B
Bash
Executable File

#!/bin/bash
case $1 in
short)
python3 /etc/kvmd/custom_atx/usbrelay_hid.py 1 on
sleep 1
python3 /etc/kvmd/custom_atx/usbrelay_hid.py 1 off
;;
long)
python3 /etc/kvmd/custom_atx/usbrelay_hid.py 1 on
sleep 5
python3 /etc/kvmd/custom_atx/usbrelay_hid.py 1 off
;;
reset)
python3 /etc/kvmd/custom_atx/usbrelay_hid.py 2 on
sleep 1
python3 /etc/kvmd/custom_atx/usbrelay_hid.py 2 off
;;
*)
echo "No thing."
esac