lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <46A48D12.4070204@gmail.com>
Date:	Mon, 23 Jul 2007 13:12:18 +0200
From:	Rene Herman <rene.herman@...il.com>
To:	BuraphaLinux Server <buraphalinuxserver@...il.com>
CC:	linux-kernel@...r.kernel.org
Subject: Re: SCSI vs SATA

On 07/23/2007 12:52 PM, BuraphaLinux Server wrote:

> #!  /bin/bash
> drive="sda"
> vendor=$(</sys/block/${drive}/device/vendor)
> if [[ "${vendor}" = "ATA     " ]]
> then
>  printf "SATA\n"
> else
>  printf "SCSI\n"
> fi
> exit 0

This is probably not a useful comment and a reasonable script in your local 
setting but still thought I'd point out that these days most anything is 
sda, so if !SATA it can generally also be USB, or FW, or ...

Rene.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ