mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Add z8102 watchdog package
This commit is contained in:
		
							parent
							
								
									c6835d325b
								
							
						
					
					
						commit
						170ef44489
					
				
					 3 changed files with 81 additions and 0 deletions
				
			
		
							
								
								
									
										13
									
								
								z8102/files/usr/lib/custom/wdg.sh
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										13
									
								
								z8102/files/usr/lib/custom/wdg.sh
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,13 @@ | |||
| #!/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 | ||||
| 	sleep 1 | ||||
| 	echo "0" > /sys/class/gpio/gpio${i}/value | ||||
| 	sleep 1 | ||||
| done | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue