mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix z8102 with gpiolib 2
This commit is contained in:
parent
9d0985b6e2
commit
8c1505cd9f
2 changed files with 29 additions and 11 deletions
|
@ -7,11 +7,17 @@
|
|||
while true
|
||||
do
|
||||
#echo "1" > /sys/class/gpio/gpio${i}/value
|
||||
gpioset `gpiofind "watchdog"`=1 2>&1 >/dev/null
|
||||
gpioset --hold-period 100ms -t0 watchdog=1 2>&1 >/dev/null
|
||||
if [ -f /usr/bin/gpiofind ]; then
|
||||
gpioset `gpiofind "watchdog"`=1 2>&1 >/dev/null
|
||||
else
|
||||
gpioset --hold-period 100ms -t0 watchdog=1 2>&1 >/dev/null
|
||||
fi
|
||||
sleep 1
|
||||
#echo "0" > /sys/class/gpio/gpio${i}/value
|
||||
gpioset `gpiofind "watchdog"`=0 2>&1 >/dev/null
|
||||
gpioset --hold-period 100ms -t0 watchdog=0 2>&1 >/dev/null
|
||||
if [ -f /usr/bin/gpiofind ]; then
|
||||
gpioset `gpiofind "watchdog"`=0 2>&1 >/dev/null
|
||||
else
|
||||
gpioset --hold-period 100ms -t0 watchdog=0 2>&1 >/dev/null
|
||||
fi
|
||||
sleep 1
|
||||
done
|
Loading…
Add table
Add a link
Reference in a new issue