mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Restart openmptcprouter-vps when needed
This commit is contained in:
		
							parent
							
								
									1afb04d03b
								
							
						
					
					
						commit
						c28eb52007
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -800,7 +800,7 @@ if [ -n "$(logread | tail -n 2 | grep 'Ring expansion failed')" ]; then
 | 
			
		|||
	echo 1 > /sys/bus/pci/rescan
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
#if [ "$(uci -q show openmptcprouter | grep get_config=\'1\')" != "" ] || [ "$(uci -q show openmptcprouter | grep admin_error=\'1\')" != "" ]; then
 | 
			
		||||
#	/etc/init.d/openmptcprouter-vps restart >/dev/null 2>&1
 | 
			
		||||
#	sleep 5
 | 
			
		||||
#fi
 | 
			
		||||
if [ "$(pgrep openmptcprouter-vps)" = "" ] && ([ "$(uci -q show openmptcprouter | grep get_config=\'1\')" != "" ] || [ "$(uci -q show openmptcprouter | grep admin_error=\'1\')" != "" ]); then
 | 
			
		||||
	/etc/init.d/openmptcprouter-vps restart >/dev/null 2>&1
 | 
			
		||||
	sleep 5
 | 
			
		||||
fi
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue