mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-28 16:41:52 +08:00
update
This commit is contained in:
17
configs/kvmd/gpio.sh
Executable file
17
configs/kvmd/gpio.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
case $1 in
|
||||
short)
|
||||
gpioset -m time -s 1 SHUTDOWNPIN=0
|
||||
gpioset SHUTDOWNPIN=1
|
||||
;;
|
||||
long)
|
||||
gpioset -m time -s 5 SHUTDOWNPIN=0
|
||||
gpioset SHUTDOWNPIN=1
|
||||
;;
|
||||
reset)
|
||||
gpioset -m time -s 1 REBOOTPIN=0
|
||||
gpioset REBOOTPIN=1
|
||||
;;
|
||||
*)
|
||||
echo "No thing."
|
||||
esac
|
||||
Reference in New Issue
Block a user