tazpanel diff index.cgi @ rev 359
settings.cgi: tiny edit
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Wed Apr 10 13:16:12 2013 +0000 (2013-04-10) |
parents | b33228b5874d |
children | 4a8f56bb08cb |
line diff
1.1 --- a/index.cgi Thu Jan 24 13:45:23 2013 +0000 1.2 +++ b/index.cgi Wed Apr 10 13:16:12 2013 +0000 1.3 @@ -397,8 +397,8 @@ 1.4 <tr> 1.5 <td><a href="hardware.cgi"> 1.6 <img src="$IMAGES/harddisk.png" />${fs#/dev/}</a></td> 1.7 - <td>$(blkid -o value $fs | head -n1)</td> 1.8 - <td>$(blkid -o value $fs | tail -n1)</td> 1.9 + <td>$(blkid $fs | sed '/LABEL=/!d;s/.*LABEL="\([^"]*\).*/\1/')</td> 1.10 + <td>$(blkid $fs | sed '/TYPE=/!d;s/.*TYPE="\([^"]*\).*/\1/')</td> 1.11 <td>$size</td> 1.12 <td>$av</td> 1.13 <td class="meter"><meter min="0" max="100" value="$(echo $pct | cut -d% -f1)" 1.14 @@ -406,6 +406,7 @@ 1.15 <span>$used - $pct</span> 1.16 </td> 1.17 <td>$mp</td> 1.18 + <td>$(blkid $fs | sed '/UUID=/!d;s/.*UUID="\([^"]*\).*/\1/')</td> 1.19 </tr> 1.20 EOT 1.21 done