/etc/init.d/scst: Really unload all SCST kernel modules

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8952 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2020-05-23 16:49:19 +00:00
parent 00765d8ae2
commit 2239719d8e
+7 -4
View File
@@ -192,10 +192,13 @@ unload_scst() {
# seconds.
unload_kmod isert_scst 90 || echo "Unloading isert_scst failed"
reverse_list="scst_disk scst_raid scst_tape scst_user scst_changer \
scst_cdrom scst_vdisk scst_modisk scst_processor \
isert_scst iscsi_scst fcst ib_srpt qla2xxx_scst qla2x00tgt \
scst_local scst"
for m in scst_disk scst_raid scst_tape scst_user scst_changer \
scst_cdrom scst_vdisk scst_modisk scst_processor \
isert_scst iscsi_scst fcst ib_srpt qla2xxx_scst qla2x00tgt \
scst_local scst; do
unload_kmod "$m" 30
done
reverse_list=""
for m in $SCST_MODULES; do
reverse_list="$m $reverse_list"
done