tazpanel diff index.cgi @ rev 636

Allow mmc block devices
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 27 16:27:37 2020 +0000 (2020-09-27)
parents bf8941ab3cc3
children 9f6e7841d19c
line diff
     1.1 --- a/index.cgi	Tue Feb 26 08:30:05 2019 +0100
     1.2 +++ b/index.cgi	Sun Sep 27 16:27:37 2020 +0000
     1.3 @@ -862,8 +862,8 @@
     1.4  				cat <<EOT
     1.5  			<tr>
     1.6  				<td><span data-icon="@hdd@">${fs#/dev/}</span></td>
     1.7 -				<td>$(blkid $fs | sed '/LABEL=/!d;s/.*LABEL="\([^"]*\).*/\1/')</td>
     1.8 -				<td>$(blkid $fs | sed '/TYPE=/!d;s/.*TYPE="\([^"]*\).*/\1/')</td>
     1.9 +				<td>$(busybox blkid $fs | sed '/LABEL=/!d;s/.*LABEL="\([^"]*\).*/\1/')</td>
    1.10 +				<td>$(busybox 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 @@ -871,7 +871,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 +				<td>$(busybox blkid $fs | sed '/UUID=/!d;s/.*UUID="\([^"]*\).*/\1/')</td>
    1.20  			</tr>
    1.21  EOT
    1.22  		done