tazpanel diff boot.cgi @ rev 517
tazpanel: typos
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 03 10:11:25 2015 +0200 (2015-08-03) |
parents | 14fdd304f33f |
children | c0997cc494ed |
line diff
1.1 --- a/boot.cgi Sun Jul 12 13:51:30 2015 +0200 1.2 +++ b/boot.cgi Mon Aug 03 10:11:25 2015 +0200 1.3 @@ -437,8 +437,10 @@ 1.4 grep -qs 1 /sys/block/$dev/ro && continue 1.5 [ -d /sys/block/$dev/device/scsi_disk ] || continue 1.6 echo -n "<option value=\"/dev/$dev\">/dev/$dev " 1.7 - echo "$(blk2h < /sys/block/$dev/size) $(cat \ 1.8 - /sys/block/$i/device/model 2>/dev/null)</option>" 1.9 + echo -n "$(blk2h < /sys/block/$dev/size) " 1.10 + echo -n "$(cat /sys/block/$dev/device/model 2>/dev/null) " 1.11 + blkid | grep $dev | sed '/LABEL=/!d;s/.*LABEL="\([^"]*\).*/"\1"/;q' 1.12 + echo "</option>" 1.13 done 1.14 cat <<EOT 1.15 </select></td></tr>