mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Disable ModemManager restart
This commit is contained in:
		
							parent
							
								
									0eaaa95d86
								
							
						
					
					
						commit
						36f028b8cf
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -1314,11 +1314,11 @@ if [ "$(pgrep rpcd)" = "" ] && [ -f /etc/init.d/rpcd ]; then
 | 
			
		|||
	sleep 5
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
if [ "$(pgrep ModemManager)" = "" ] && [ -f /etc/init.d/modemmanager ] && [ -n "$(uci -q show network | grep modemmanager)" ] && [ "$(uci -q get openmptcprouter.settings.modemmanager)" != "0" ]; then
 | 
			
		||||
	_log "Can't find ModemManager, restart it..."
 | 
			
		||||
	/etc/init.d/modemmanager restart
 | 
			
		||||
	sleep 5
 | 
			
		||||
fi
 | 
			
		||||
#if [ "$(pgrep ModemManager)" = "" ] && [ -f /etc/init.d/modemmanager ] && [ -n "$(uci -q show network | grep modemmanager)" ] && [ "$(uci -q get openmptcprouter.settings.modemmanager)" != "0" ]; then
 | 
			
		||||
#	_log "Can't find ModemManager, restart it..."
 | 
			
		||||
#	/etc/init.d/modemmanager restart
 | 
			
		||||
#	sleep 5
 | 
			
		||||
#fi
 | 
			
		||||
 | 
			
		||||
if [ "$(uci -q get v2ray.main.enabled)" = "1" ] && [ -f /etc/init.d/v2ray ] && [ "$(pgrep -f omr-tracker-v2ray)" = "" ] && [ "$(pgrep -f '/etc/init.d/omr-tracker')" = "" ]; then
 | 
			
		||||
	_log "Can't find omr-tracker-v2ray, restart omr-tracker..."
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue