mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
(change version)
Fixed problem with false /dev output for /dev/root, needed to set partition to null again when located in uuid or label
This commit is contained in:
parent
b0d098b863
commit
026df46dfd
4
inxi
4
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.0.5
|
#### version: 1.0.6
|
||||||
#### Date: 1 March 2009
|
#### Date: 1 March 2009
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -2491,9 +2491,11 @@ get_partition_data_advanced()
|
||||||
}
|
}
|
||||||
else if ( partTemp ~ /by-uuid/ ) {
|
else if ( partTemp ~ /by-uuid/ ) {
|
||||||
uuid=gensub( /^(\/dev\/disk\/by-uuid\/)(.+)$/, "\\2", 1, partTemp )
|
uuid=gensub( /^(\/dev\/disk\/by-uuid\/)(.+)$/, "\\2", 1, partTemp )
|
||||||
|
partition="" # set null to let real location get discovered
|
||||||
}
|
}
|
||||||
else if ( partTemp ~ /by-label/ ) {
|
else if ( partTemp ~ /by-label/ ) {
|
||||||
label=gensub( /^(\/dev\/disk\/by-label\/)(.+)$/, "\\2", 1, partTemp )
|
label=gensub( /^(\/dev\/disk\/by-label\/)(.+)$/, "\\2", 1, partTemp )
|
||||||
|
partition="" # set null to let real location get discovered
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue