(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:
inxi-svn 2009-03-02 02:32:16 +00:00
parent b0d098b863
commit 026df46dfd

4
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.0.5
#### version: 1.0.6
#### Date: 1 March 2009
########################################################################
#### SPECIAL THANKS
@ -2491,9 +2491,11 @@ get_partition_data_advanced()
}
else if ( partTemp ~ /by-uuid/ ) {
uuid=gensub( /^(\/dev\/disk\/by-uuid\/)(.+)$/, "\\2", 1, partTemp )
partition="" # set null to let real location get discovered
}
else if ( partTemp ~ /by-label/ ) {
label=gensub( /^(\/dev\/disk\/by-label\/)(.+)$/, "\\2", 1, partTemp )
partition="" # set null to let real location get discovered
}
}
else {