This commit is contained in:
mofeng-git
2024-09-20 16:51:52 +08:00
parent ebcc3ffa45
commit d7a9f0c969
2 changed files with 26 additions and 21 deletions

17
configs/kvmd/gpio.sh Executable file
View 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