mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bsd cleanups
This commit is contained in:
parent
80f6061580
commit
7d6ed4d848
7
inxi
7
inxi
|
@ -7015,11 +7015,12 @@ get_partition_data()
|
||||||
else {
|
else {
|
||||||
fileSystem=""
|
fileSystem=""
|
||||||
}
|
}
|
||||||
if ( bsdVersion != "darwin" ) {
|
# /dev/disk0s2 249G 24G 225G 10% 5926984 54912758 10% /
|
||||||
print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main," fileSystem "," devBase
|
if ( bsdVersion == "darwin" && $(NF - 4) ~ /[0-9]+%/ ) {
|
||||||
|
print $NF "," $(NF - 7) "," $(NF - 6) "," $(NF - 4) ",main," fileSystem "," devBase
|
||||||
}
|
}
|
||||||
else {
|
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
|
# skip all these, including the first, header line. Use the --exclude-type
|
||||||
|
|
Loading…
Reference in a new issue