This commit is contained in:
		
							parent
							
								
									0c7813397c
								
							
						
					
					
						commit
						f1bfeca7b8
					
				
							
								
								
									
										11
									
								
								bin/rule-save
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								bin/rule-save
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# Important directory locations
 | 
			
		||||
FWPREFIX="/usr/local"
 | 
			
		||||
FWCONFIGDIR="${FWPREFIX}/etc/srfirewall"
 | 
			
		||||
FWLIBDIR="${FWPREFIX}/lib/srfirewall"
 | 
			
		||||
FWBINDIR="${FWPREFIX}/bin"
 | 
			
		||||
source "${FWCONFIGDIR}/main.conf"
 | 
			
		||||
source "${FWCONFIGDIR}/local.conf"
 | 
			
		||||
 | 
			
		||||
echo "$*" >> "${FWPREFIX}/etc/srfirewall/cache/srfirewall-rules"
 | 
			
		||||
							
								
								
									
										11
									
								
								bin/rule-save6
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										11
									
								
								bin/rule-save6
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
# Important directory locations
 | 
			
		||||
FWPREFIX="/usr/local"
 | 
			
		||||
FWCONFIGDIR="${FWPREFIX}/etc/srfirewall"
 | 
			
		||||
FWLIBDIR="${FWPREFIX}/lib/srfirewall"
 | 
			
		||||
FWBINDIR="${FWPREFIX}/bin"
 | 
			
		||||
source "${FWCONFIGDIR}/main.conf"
 | 
			
		||||
source "${FWCONFIGDIR}/local.conf"
 | 
			
		||||
 | 
			
		||||
echo "$*" >> "${FWPREFIX}/etc/srfirewall/cache/srfirewall-rules6"
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user