Skip to content

Commit

Permalink
For serial, get ID_SCSI_SERIAL. If that doesn't exist, then fall back…
Browse files Browse the repository at this point in the history
… to ID_SERIAL_SHORT.
  • Loading branch information
FransUrbo committed Mar 7, 2014
1 parent 04cc156 commit a16cc59
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GetDiskInfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ lspci -D | \

# ----------------------
# Get serial number
serial=$(get_udev_info ID_SERIAL_SHORT)
serial=$(get_udev_info ID_SCSI_SERIAL)
[ "$serial" == "n/a" ] && serial=$(get_udev_info ID_SERIAL_SHORT)

# ----------------------
# Get device name (Disk by ID)
Expand Down

0 comments on commit a16cc59

Please sign in to comment.