diff options
author | Ben Allen <bensallen@me.com> | 2016-01-13 14:53:31 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-01-19 12:51:54 +0000 |
commit | 34be128a47762c967c596f7c2f739fa27b861379 (patch) | |
tree | 816deda224f153ba0eca42caf8e2b8990e54c953 /testing/sqm-scripts/10-defaults.sh.patch | |
parent | 5b3b16cad875216eabf1261873ca97b850f94d4e (diff) | |
download | aports-34be128a47762c967c596f7c2f739fa27b861379.tar.bz2 aports-34be128a47762c967c596f7c2f739fa27b861379.tar.xz |
testing/sqm-scripts: new aport
SQM scripts traffic shaper: https://github.com/tohojo/sqm-scripts
Diffstat (limited to 'testing/sqm-scripts/10-defaults.sh.patch')
-rw-r--r-- | testing/sqm-scripts/10-defaults.sh.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testing/sqm-scripts/10-defaults.sh.patch b/testing/sqm-scripts/10-defaults.sh.patch new file mode 100644 index 0000000000..ab1d85d5af --- /dev/null +++ b/testing/sqm-scripts/10-defaults.sh.patch @@ -0,0 +1,11 @@ +--- sqm-scripts-1.0.6/src/defaults.sh.orig ++++ sqm-scripts-1.0.6/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" + [ -z "$IPT_MASK_STRING" ] && IPT_MASK_STRING="/${IPT_MASK}" # for set-mark |