This patch reloads imq module if number of devices previously created are not equal to the number of device needed by qos-scripts.
This is an addition to patch: [qos-scripts] Reload modules with parameters specified https://lists.openwrt.org/pipermail/openwrt-devel/2009-May/004251.html Signed-off-by: Vasilis Tsiligiannis <b_tsiligian...@silverton.gr> --- .../qos-scripts/files/usr/lib/qos/generate.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh index 4ee29ca..6d34719 100755 --- a/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh +++ b/trunk/package/qos-scripts/files/usr/lib/qos/generate.sh @@ -298,7 +298,7 @@ start_interface() { prefix="cls" ;; down) - add_insmod imq numdevs="$num_imq" + [ "$(ls -d /proc/sys/net/ipv4/conf/imq* 2>&- | wc -l)" -ne "$num_imq" ] && add_insmod imq numdevs="$num_imq" config_get imqdev "$iface" imqdev [ "$overhead" = 1 ] && download=$(($download * 98 / 100 - (80 * 1024 / $download))) dev="imq$imqdev" -- 1.5.4.3 _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel