X-Git-Url: https://git.tld-linux.org/?p=packages%2Fsg3_utils.git;a=blobdiff_plain;f=sg3_utils-rescan-scsi-bus.sh.patch;fp=sg3_utils-rescan-scsi-bus.sh.patch;h=1a0da7f60bd126332f542c41dc74cf5ea619b192;hp=0000000000000000000000000000000000000000;hb=3fc054f67ef3ec90c0c45fb513e18d89b43a1a38;hpb=cd35ce233cc4fd097e82c022d417a88b04fb6aab diff --git a/sg3_utils-rescan-scsi-bus.sh.patch b/sg3_utils-rescan-scsi-bus.sh.patch new file mode 100644 index 0000000..1a0da7f --- /dev/null +++ b/sg3_utils-rescan-scsi-bus.sh.patch @@ -0,0 +1,11 @@ +diff -ruNp sg3_utils-1.42.orig/scripts/rescan-scsi-bus.sh sg3_utils-1.42/scripts/rescan-scsi-bus.sh +--- sg3_utils-1.42.orig/scripts/rescan-scsi-bus.sh 2016-02-02 05:21:27.000000000 +0100 ++++ sg3_utils-1.42/scripts/rescan-scsi-bus.sh 2018-02-08 12:17:16.792117671 +0100 +@@ -241,6 +241,7 @@ testonline () + sg_turs /dev/$SGDEV >/dev/null 2>&1 + RC=$? + ++ ctr=0 + # Handle in progress of becoming ready and unit attention + while test $RC = 2 -o $RC = 6 && test $ctr -le 30; do + if test $RC = 2 -a "$RMB" != "1"; then echo -n "."; let LN+=1; sleep 1