tazpanel rev 636 tip

Allow mmc block devices
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Sep 27 16:27:37 2020 +0000 (5 months ago)
parents 8e4c1fe85462
children
files boot.cgi
line diff
     1.1 --- a/boot.cgi	Sun Sep 27 16:12:27 2020 +0000
     1.2 +++ b/boot.cgi	Sun Sep 27 16:27:37 2020 +0000
     1.3 @@ -423,7 +423,7 @@
     1.4  		    -e 's|TYPE="\([^"]*\)"|\1|;s|/dev/||' | \
     1.5  		while read dev label type; do
     1.6  			echo -n "<option value=\"/dev/$dev\">/dev/$dev $label $type "
     1.7 -			echo "$(blk2h < /sys/block/${dev:0:3}/$dev/size)</option>"
     1.8 +			echo "$(blk2h < /sys/block/*/$dev/size)</option>"
     1.9  		done 
    1.10  		cat <<EOT
    1.11  			</select></td></tr>