1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 03:35:38 +03:00
aports/testing/sqm-scripts/10-defaults.sh.patch
Ben Allen 1d8cbd4b6e testing/sqm-scripts: Upgrade to 1.0.7
- Upgrade to 1.0.7
- Cleanup patches
2016-03-25 11:58:11 +00:00

11 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