mirror of
				https://github.com/Ysurac/openmptcprouter-feeds.git
				synced 2025-03-09 15:40:03 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			No EOL
		
	
	
		
			181 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			No EOL
		
	
	
		
			181 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable file
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
s=firewall.ss_rules
 | 
						|
uci get "$s" >/dev/null || {
 | 
						|
	uci batch <<-EOF
 | 
						|
		set $s=include
 | 
						|
		set $s.path=/etc/firewall.ss-rules
 | 
						|
		set $s.reload=1
 | 
						|
		commit firewall
 | 
						|
	EOF
 | 
						|
}
 | 
						|
exit 0 |