Initial import data
This commit is contained in:
		
							
								
								
									
										5
									
								
								files/etc/config/wanmonitor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								files/etc/config/wanmonitor
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,5 @@ | ||||
| config wanmonitor | ||||
| 	option check_host	'8.8.4.4' | ||||
| 	option interval		'5' | ||||
| 	option wan_primary	'wan1' | ||||
| 	option wan_secondary	'wan2' | ||||
							
								
								
									
										11
									
								
								files/etc/init.d/wanmonitor
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								files/etc/init.d/wanmonitor
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | ||||
| #!/bin/sh /etc/rc.common | ||||
|  | ||||
| START=99 | ||||
|  | ||||
| start() { | ||||
| 	/usr/bin/wanmonitor -d & | ||||
| } | ||||
|  | ||||
| stop() { | ||||
| 	kill $(pidof wanmonitor) | ||||
| } | ||||
		Reference in New Issue
	
	Block a user