mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
20 lines
471 B
Bash
Executable File
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 |