bsd cleanups

This commit is contained in:
inxi-svn 2014-05-02 20:23:48 +00:00
parent 80f6061580
commit 7d6ed4d848

7
inxi
View file

@ -7015,11 +7015,12 @@ get_partition_data()
else {
fileSystem=""
}
if ( bsdVersion != "darwin" ) {
print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main," fileSystem "," devBase
# /dev/disk0s2 249G 24G 225G 10% 5926984 54912758 10% /
if ( bsdVersion == "darwin" && $(NF - 4) ~ /[0-9]+%/ ) {
print $NF "," $(NF - 7) "," $(NF - 6) "," $(NF - 4) ",main," fileSystem "," devBase
}
else {
print $NF "," $(NF - 7) "," $(NF - 6) "," $(NF - 4) ",main," fileSystem "," devBase
print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main," fileSystem "," devBase
}
}
# skip all these, including the first, header line. Use the --exclude-type