1 diff -ruNp sg3_utils-1.42.orig/scripts/rescan-scsi-bus.sh sg3_utils-1.42/scripts/rescan-scsi-bus.sh
2 --- sg3_utils-1.42.orig/scripts/rescan-scsi-bus.sh 2016-02-02 05:21:27.000000000 +0100
3 +++ sg3_utils-1.42/scripts/rescan-scsi-bus.sh 2018-02-08 12:17:16.792117671 +0100
4 @@ -241,6 +241,7 @@ testonline ()
5 sg_turs /dev/$SGDEV >/dev/null 2>&1
9 # Handle in progress of becoming ready and unit attention
10 while test $RC = 2 -o $RC = 6 && test $ctr -le 30; do
11 if test $RC = 2 -a "$RMB" != "1"; then echo -n "."; let LN+=1; sleep 1