diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2022-02-19 00:07:49 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2022-02-19 00:07:49 +0000 |
commit | a7661ae7083b3360fc4f6c7b6d7daa97ed9e9013 (patch) | |
tree | 105cec9007c77dafc963bf51ae4b64fcad65e447 /scripts | |
parent | 8385f6006c857fb6a7e66b4b29da1d91c5300bb6 (diff) | |
download | sg3_utils-a7661ae7083b3360fc4f6c7b6d7daa97ed9e9013.tar.gz |
rescan-scsi-bus.sh: rev 815 changed the order of listing hosts from numeric to alphabetical, change it back to numeric
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@939 6180dd3e-e324-4e3e-922d-17de1ae2f315
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 |