From 0ca634e9effa05356c0aa01280b5878071c3d51a Mon Sep 17 00:00:00 2001 From: Manas Sambhus Date: Sat, 9 Jul 2022 12:03:43 +0530 Subject: [PATCH] qos-scripts: replace modprobe by rmmod modprobe -r is not available on all platforms, hence use rmmod Signed-off-by: Manas Sambhus --- .../network/config/qos-scripts/files/usr/lib/qos/generate.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh index 62e7283633e..12e085a3dfa 100755 --- a/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh +++ b/package/network/config/qos-scripts/files/usr/lib/qos/generate.sh @@ -2,11 +2,10 @@ [ -e /lib/functions.sh ] && . /lib/functions.sh || . ./functions.sh [ -x /sbin/modprobe ] && { insmod="modprobe" - rmmod="$insmod -r" } || { insmod="insmod" - rmmod="rmmod" } +rmmod="rmmod" add_insmod() { eval "export isset=\${insmod_$1}" -- 2.30.2