om-watchdog: add support for Teltonika RUT5xx (ramips)
Add rut5xx GPIO PIN selection to om-package startup script. Testet on a RUT500 device, the timeout value of the hardware watchdog is about 280 sec. Signed-off-by: Steffen Weinreich <steve@weinreich.org> [split into two commits, bump PKG_RELEASE] Signed-off-by: Piotr Dymacz <pepe2k@gmail.com>
This commit is contained in:
		 Steffen Weinreich
					Steffen Weinreich
				
			
				
					committed by
					
						 Piotr Dymacz
						Piotr Dymacz
					
				
			
			
				
	
			
			
			 Piotr Dymacz
						Piotr Dymacz
					
				
			
						parent
						
							08ab3fda01
						
					
				
				
					commit
					04e91631e0
				
			| @@ -8,7 +8,7 @@ | |||||||
| include $(TOPDIR)/rules.mk | include $(TOPDIR)/rules.mk | ||||||
|  |  | ||||||
| PKG_NAME:=om-watchdog | PKG_NAME:=om-watchdog | ||||||
| PKG_RELEASE:=1 | PKG_RELEASE:=2 | ||||||
| PKG_VERSION:=1 | PKG_VERSION:=1 | ||||||
|  |  | ||||||
| include $(INCLUDE_DIR)/package.mk | include $(INCLUDE_DIR)/package.mk | ||||||
|   | |||||||
| @@ -48,6 +48,15 @@ get_gpio() { | |||||||
| 			return 17 | 			return 17 | ||||||
| 			;; | 			;; | ||||||
| 		esac | 		esac | ||||||
|  | 	elif [ -r /lib/ramips.sh ]; then | ||||||
|  | 		. /lib/ramips.sh | ||||||
|  | 		local board=$(ramips_board_name) | ||||||
|  |  | ||||||
|  | 		case "$board" in | ||||||
|  | 		"rut5xx") | ||||||
|  | 			return 11 | ||||||
|  | 			;; | ||||||
|  | 		esac | ||||||
| 	else | 	else | ||||||
| 		#we assume it is om1p in this case | 		#we assume it is om1p in this case | ||||||
| 		return 3 | 		return 3 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user