installer.kmdr: small fix to previous commit for product and vendor displayed
This commit is contained in:
parent
0311bc8539
commit
fcd43a4df6
@ -1614,8 +1614,6 @@ for d in $devices; do
|
|||||||
diskdevice=${d/\/dev\/}
|
diskdevice=${d/\/dev\/}
|
||||||
native_path=`get_udisks_key $d native-path`
|
native_path=`get_udisks_key $d native-path`
|
||||||
[ ! -e $native_path/partition ] || continue
|
[ ! -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=`get_udisks_key $d "system internal"`
|
||||||
[ "$is_system_internal" != "1" -a @removablebox.checked == 0 ] && continue
|
[ "$is_system_internal" != "1" -a @removablebox.checked == 0 ] && continue
|
||||||
partscheme=`get_udisks_key $d scheme`
|
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`
|
volumes=`ls -d $native_path/${diskdevice}* 2>/dev/null | sed "s|.*/||" | sort -n -r`
|
||||||
disktype="@i18n("Disk")"
|
disktype="@i18n("Disk")"
|
||||||
fi
|
fi
|
||||||
|
vendor=`get_udisks_key $d vendor`
|
||||||
|
product=`get_udisks_key $d model`
|
||||||
disksize=`get_udisks_key $d size`
|
disksize=`get_udisks_key $d size`
|
||||||
disksize=`expr $disksize / 1024 / 1024 / 1024`
|
disksize=`expr $disksize / 1024 / 1024 / 1024`
|
||||||
thisdisk=
|
thisdisk=
|
||||||
|
Loading…
Reference in New Issue
Block a user