[openwrt/openwrt] qos-scripts: replace modprobe by rmmod
LEDE Commits
lede-commits at lists.infradead.org
Tue Sep 27 08:18:04 PDT 2022
ansuel pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/0ca634e9effa05356c0aa01280b5878071c3d51a
commit 0ca634e9effa05356c0aa01280b5878071c3d51a
Author: Manas Sambhus <manas.sambhus+github at gmail.com>
AuthorDate: Sat Jul 9 12:03:43 2022 +0530
qos-scripts: replace modprobe by rmmod
modprobe -r is not available on all platforms, hence use rmmod
Signed-off-by: Manas Sambhus <manas.sambhus+github at gmail.com>
---
package/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 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}"
More information about the lede-commits
mailing list