One-KVM/configs/kvmd/custom_atx/usbrelay_hid.sh
mofeng-git 0f39312eac 添加电源管理支持
USB HID 继电器支持
GPIO 添加初始文件
2024-10-02 12:55:48 +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