tazpanel rev 612
hardware.cgi: add disk serial number
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 20 10:37:41 2017 +0200 (2017-05-20) |
parents | 25477916b8c7 |
children | 26f60e49e3d5 |
files | hardware.cgi |
line diff
1.1 --- a/hardware.cgi Sun Feb 12 12:39:07 2017 +0100 1.2 +++ b/hardware.cgi Sat May 20 10:37:41 2017 +0200 1.3 @@ -24,6 +24,7 @@ 1.4 d=${b#/dev/} 1.5 d="/sys/block/${d%:}/device" 1.6 [ -d $d ] && echo "$a $b $c, $(cat $d/vendor) $(cat $d/model)" 1.7 + smartctl -a ${b%:} | sed '/^Model/,/^Firmware/!d' 1.8 done 2> /dev/null | sed 's/ */ /g' 1.9 } 1.10