aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sqm-scripts/10-defaults.sh.patch
blob: d2c7bdd6fee15d6d00adfcbd7673e4a065726bee (plain)
1
2
3
4
5
6
7
8
9
10
11
--- 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