From: Manas Sambhus Date: Sat, 9 Jul 2022 06:33:43 +0000 (+0530) Subject: qos-scripts: replace modprobe by rmmod X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=0ca634e9effa05356c0aa01280b5878071c3d51a;p=openwrt%2Fstaging%2Fsvanheule.git qos-scripts: replace modprobe by rmmod modprobe -r is not available on all platforms, hence use rmmod Signed-off-by: Manas Sambhus --- 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 62e7283633..12e085a3df 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}"