mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-02-03 03:21:54 +08:00
添加电源管理支持
USB HID 继电器支持 GPIO 添加初始文件
This commit is contained in:
20
configs/kvmd/custom_atx/usbrelay_hid.sh
Executable file
20
configs/kvmd/custom_atx/usbrelay_hid.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user