mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
(change version)
bug fix, now it should work for all uuid/label
This commit is contained in:
parent
0047d982e5
commit
4305cd22d1
12
inxi
12
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.10.3
|
#### version: 0.10.4
|
||||||
#### Date: 6 February 2009
|
#### Date: 6 February 2009
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -2446,8 +2446,8 @@ get_partition_data_advanced()
|
||||||
# dev item set no matter what, so then we can get the rest of any missing data
|
# dev item set no matter what, so then we can get the rest of any missing data
|
||||||
# first we'll get the dev_item if it's missing
|
# first we'll get the dev_item if it's missing
|
||||||
if [[ -n $dev_disk_uuid ]] && [[ -z $dev_item && -n $dev_uuid ]];then
|
if [[ -n $dev_disk_uuid ]] && [[ -z $dev_item && -n $dev_uuid ]];then
|
||||||
dev_item=$( echo "$dev_disk_label" | gawk '
|
dev_item=$( echo "$dev_disk_uuid" | gawk '
|
||||||
/'$dev_label'/ {
|
/'$dev_uuid'/ {
|
||||||
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
||||||
print item
|
print item
|
||||||
}' )
|
}' )
|
||||||
|
@ -2458,7 +2458,6 @@ get_partition_data_advanced()
|
||||||
print item
|
print item
|
||||||
}' )
|
}' )
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -n $dev_disk_uuid ]] && [[ -n $dev_item && -z $dev_uuid ]];then
|
if [[ -n $dev_disk_uuid ]] && [[ -n $dev_item && -z $dev_uuid ]];then
|
||||||
dev_uuid=$( echo "$dev_disk_uuid" | gawk '
|
dev_uuid=$( echo "$dev_disk_uuid" | gawk '
|
||||||
/'$dev_item'$/ {
|
/'$dev_item'$/ {
|
||||||
|
@ -2468,11 +2467,10 @@ get_partition_data_advanced()
|
||||||
if [[ -n $dev_disk_label ]] && [[ -n $dev_item && -z $dev_label ]];then
|
if [[ -n $dev_disk_label ]] && [[ -n $dev_item && -z $dev_label ]];then
|
||||||
dev_label=$( echo "$dev_disk_label" | gawk '
|
dev_label=$( echo "$dev_disk_label" | gawk '
|
||||||
/'$dev_item'/ {
|
/'$dev_item'/ {
|
||||||
item=gensub( /..\/..\/(.+)/, "\\1", 1, $NF )
|
print $(NF - 2)
|
||||||
print item
|
|
||||||
}' )
|
}' )
|
||||||
fi
|
|
||||||
|
|
||||||
|
fi
|
||||||
# assemble everything we could get for dev/h/dx, label, and uuid
|
# assemble everything we could get for dev/h/dx, label, and uuid
|
||||||
IFS=","
|
IFS=","
|
||||||
A_PARTITION_DATA[i]=${a_partition_working[0]}","${a_partition_working[1]}","${a_partition_working[2]}","${a_partition_working[3]}","${a_partition_working[4]}","$dev_item","$dev_label","$dev_uuid
|
A_PARTITION_DATA[i]=${a_partition_working[0]}","${a_partition_working[1]}","${a_partition_working[2]}","${a_partition_working[3]}","${a_partition_working[4]}","$dev_item","$dev_label","$dev_uuid
|
||||||
|
|
Loading…
Reference in a new issue