diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/rescan-scsi-bus.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/rescan-scsi-bus.sh b/scripts/rescan-scsi-bus.sh index 78544b1c..862badaa 100755 --- a/scripts/rescan-scsi-bus.sh +++ b/scripts/rescan-scsi-bus.sh @@ -73,8 +73,8 @@ findhosts_26 () echo "No SCSI host adapters found in sysfs" exit 1; fi - # Not necessary just use double quotes around variable to preserve new lines - #hosts=$(echo $hosts | tr ' ' '\n') + # ensure numeric ordering. No quotes arount $hosts to skip leading space. + hosts=$(echo $hosts | tr ' ' '\n' | sort -n) } # Return hosts. /proc/scsi/HOSTADAPTER/? must exist |