mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-07 20:54:14 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
#i=457
|
||||
#echo $i > /sys/class/gpio/export
|
||||
#echo "out" > /sys/class/gpio/gpio${i}/direction
|
||||
|
||||
while true
|
||||
do
|
||||
#echo "1" > /sys/class/gpio/gpio${i}/value
|
||||
if [ -f /usr/bin/gpiofind ]; then
|
||||
gpioset `gpiofind "watchdog"`=1 2>&1 >/dev/null
|
||||
else
|
||||
gpioset -t0 watchdog=1 2>&1 >/dev/null
|
||||
fi
|
||||
sleep 1
|
||||
#echo "0" > /sys/class/gpio/gpio${i}/value
|
||||
if [ -f /usr/bin/gpiofind ]; then
|
||||
gpioset `gpiofind "watchdog"`=0 2>&1 >/dev/null
|
||||
else
|
||||
gpioset -t0 watchdog=0 2>&1 >/dev/null
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
Reference in new issue
Block a user