mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-02 20:16:59 +00:00
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>
This commit is contained in:
parent
4cc7011da0
commit
0ca634e9ef
@ -2,11 +2,10 @@
|
|||||||
[ -e /lib/functions.sh ] && . /lib/functions.sh || . ./functions.sh
|
[ -e /lib/functions.sh ] && . /lib/functions.sh || . ./functions.sh
|
||||||
[ -x /sbin/modprobe ] && {
|
[ -x /sbin/modprobe ] && {
|
||||||
insmod="modprobe"
|
insmod="modprobe"
|
||||||
rmmod="$insmod -r"
|
|
||||||
} || {
|
} || {
|
||||||
insmod="insmod"
|
insmod="insmod"
|
||||||
rmmod="rmmod"
|
|
||||||
}
|
}
|
||||||
|
rmmod="rmmod"
|
||||||
|
|
||||||
add_insmod() {
|
add_insmod() {
|
||||||
eval "export isset=\${insmod_$1}"
|
eval "export isset=\${insmod_$1}"
|
||||||
|
Loading…
Reference in New Issue
Block a user