mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 08:21:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			514 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			514 B
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- a/src/defaults.sh
 | |
| +++ b/src/defaults.sh
 | |
| @@ -27,7 +27,7 @@
 | |
|  [ -z "$IP" ] && IP=ip_wrapper
 | |
|  [ -z "$IP_BINARY" ] && IP_BINARY=$(which ip)
 | |
|  # Try modprobe first, fall back to insmod
 | |
| -[ -z "$INSMOD" ] && INSMOD=$(which modprobe) || INSMOD=$(which insmod)
 | |
| +[ -n "$INSMOD" ] || INSMOD=$(which modprobe) || INSMOD=$(which insmod)
 | |
|  [ -z "$TARGET" ] && TARGET="5ms"
 | |
|  [ -z "$IPT_MASK" ] && IPT_MASK="0xff" # to disable: set mask to 0xffffffff
 | |
|  #sm: we need the functions above before trying to set the ingress IFB device
 |