1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Fix z8102 watchdog

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-04-25 13:54:28 +02:00
parent 0c71b0e345
commit 9d0985b6e2

View file

@ -7,9 +7,11 @@
while true
do
#echo "1" > /sys/class/gpio/gpio${i}/value
gpioset `gpiofind "watchdog"`=1
gpioset `gpiofind "watchdog"`=1 2>&1 >/dev/null
gpioset --hold-period 100ms -t0 watchdog=1 2>&1 >/dev/null
sleep 1
#echo "0" > /sys/class/gpio/gpio${i}/value
gpioset `gpiofind "watchdog"`=0
gpioset `gpiofind "watchdog"`=0 2>&1 >/dev/null
gpioset --hold-period 100ms -t0 watchdog=0 2>&1 >/dev/null
sleep 1
done