installer.kmdr: small fix to previous commit for product and vendor displayed

This commit is contained in:
Silvan Calarco 2014-06-25 17:43:11 +02:00
parent 0311bc8539
commit fcd43a4df6

View File

@ -1614,8 +1614,6 @@ for d in $devices; do
diskdevice=${d/\/dev\/}
native_path=`get_udisks_key $d native-path`
[ ! -e $native_path/partition ] || continue
vendor=`get_udisks_key $d vendor`
product=`get_udisks_key $d model`
is_system_internal=`get_udisks_key $d "system internal"`
[ "$is_system_internal" != "1" -a @removablebox.checked == 0 ] && continue
partscheme=`get_udisks_key $d scheme`
@ -1623,6 +1621,8 @@ for d in $devices; do
volumes=`ls -d $native_path/${diskdevice}* 2>/dev/null | sed "s|.*/||" | sort -n -r`
disktype="@i18n("Disk")"
fi
vendor=`get_udisks_key $d vendor`
product=`get_udisks_key $d model`
disksize=`get_udisks_key $d size`
disksize=`expr $disksize / 1024 / 1024 / 1024`
thisdisk=