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:
		
							parent
							
								
									0c71b0e345
								
							
						
					
					
						commit
						9d0985b6e2
					
				
					 1 changed files with 4 additions and 2 deletions
				
			
		|  | @ -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 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue