mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 18:51:27 +00:00
/etc/init.d/scst: Suppress rmmod error messages
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6708 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -171,7 +171,9 @@ unload_kmod() {
|
||||
m="$1"
|
||||
t="$2"
|
||||
i=0
|
||||
while [ -e "/sys/module/$m/refcnt" ] && ! rmmod "$m" && [ $i -lt "$t" ]; do
|
||||
while [ -e "/sys/module/$m/refcnt" ] && ! rmmod "$m" 2>/dev/null &&
|
||||
[ $i -lt "$t" ]
|
||||
do
|
||||
sleep 1
|
||||
i=$((i+1))
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user