mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
18 lines
306 B
Bash
18 lines
306 B
Bash
#!/bin/bash
|
|
case $1 in
|
|
short)
|
|
gpioset -m time -s 1 gpiochip1 7=0
|
|
gpioset gpiochip1 7=1
|
|
;;
|
|
long)
|
|
gpioset -m time -s 5 gpiochip1 7=0
|
|
gpioset gpiochip1 7=1
|
|
;;
|
|
reset)
|
|
gpioset -m time -s 1 gpiochip0 11=0
|
|
gpioset gpiochip0 11=1
|
|
;;
|
|
*)
|
|
echo "No thing."
|
|
esac
|