aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorManas Sambhus <manas.sambhus+github@gmail.com>2022-07-09 12:03:43 +0530
committerChristian Marangi <ansuelsmth@gmail.com>2022-09-27 17:16:45 +0200
commit0ca634e9effa05356c0aa01280b5878071c3d51a (patch)
tree8edc443972e092282422229773fe7a499db57952 /package/network
parent4cc7011da02d31574b297817936ccd02d6a94f69 (diff)
downloadupstream-0ca634e9effa05356c0aa01280b5878071c3d51a.tar.gz
upstream-0ca634e9effa05356c0aa01280b5878071c3d51a.tar.bz2
upstream-0ca634e9effa05356c0aa01280b5878071c3d51a.zip
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@gmail.com>
Diffstat (limited to 'package/network')
-rwxr-xr-xpackage/network/config/qos-scripts/files/usr/lib/qos/generate.sh3
1 files changed, 1 insertions, 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}"