mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Do not disable modem in ModemManager on reconnect using feckert pull request to OpenWRT
This commit is contained in:
		
							parent
							
								
									99067813a3
								
							
						
					
					
						commit
						91f4fc159b
					
				
					 2 changed files with 13 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -32,6 +32,8 @@ IFUP=$(ifstatus "${CFG}" | jsonfilter -e "@.up")
 | 
			
		|||
 | 
			
		||||
[ "${IFUP}" = "true" ] && {
 | 
			
		||||
	mm_log "info" "Reconnecting '${CFG}' on '${STATE}' event"
 | 
			
		||||
 | 
			
		||||
	uci_toggle_state network "${CFG}" disable_modem "0"
 | 
			
		||||
	ubus call network.interface down "{ 'interface': '${CFG}'}"
 | 
			
		||||
	ubus call network.interface up "{ 'interface': '${CFG}'}"
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue