# rescan-scsi-bus /usr/sbin/rescan-scsi-bus: line 592: [: 1.03: integer expression expected Host adapter 0 (ahci) found. Host adapter 1 (ahci) found. Host adapter 2 (ahci) found. Host adapter 3 (ahci) found. Host adapter 4 (ahci) found. Host adapter 5 (ahci) found. Host adapter 6 (usb-storage) found. Host adapter 7 (usb-storage) found. Host adapter 8 (usb-storage) found. Host adapter 9 (usb-storage) found. [cut] Running bash -x /usr/sbin/rescan-scsi-bus.sh shows where is the problem: + test @ = @--help -o @ = @-h -o @ = '@-?' + test '!' -d /sys/class/scsi_host/ -a '!' -d /proc/scsi/ + modprobe sg + test -x /usr/bin/sg_inq ++ sg_inq -V ++ cut -d ' ' -f 3 + sg_version=1.03 + sg_version=1.03 + '[' -z 1.03 -o 1.03 -lt 70 ']' /usr/sbin/rescan-scsi-bus.sh: line 592: [: 1.03: integer expression expected
What's your version of sys-apps/sg3_utils ? On a semi-related note: it seems rescan-scsi-bus.sh-1.56 is available.
I have sys-apps/sg3_utils-1.33.
In sys-apps/sg3_utils-1.29: sg_inq -V Version string: 0.88 20100331 In sys-apps/sg3_utils-1.33: sg_inq -V Version string: 1.03 20111113 The lies in 'sg_version=${sg_version##0.}'. It seems fixed in rescan-scsi-bus.sh-1.56
Fixed in 1.57 commited Tue Aug 27 05:46:18 2013 UTC (31 hours ago) by radhermit