mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	Add glorytun in restart when network changes
This commit is contained in:
		
							parent
							
								
									cec1a18a83
								
							
						
					
					
						commit
						a68cf0ff62
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -52,5 +52,11 @@ if [ "$(uci -q show firewall | grep omrvpn)" = "" ]; then
 | 
			
		|||
		commit firewall
 | 
			
		||||
	EOF
 | 
			
		||||
fi
 | 
			
		||||
if [ "$(uci -q get ucitrack.@network[-1].affects | grep glorytun)" = "" ]; then
 | 
			
		||||
	uci -q batch <<-EOF >/dev/null
 | 
			
		||||
		add_list ucitrack.@network[-1].affects="glorytun"
 | 
			
		||||
		commit ucitrack
 | 
			
		||||
	EOF
 | 
			
		||||
fi
 | 
			
		||||
rm -f /tmp/luci-indexcache
 | 
			
		||||
exit 0
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue