mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug trapper
This commit is contained in:
parent
4891f4f29e
commit
bdb12380f3
12
inxi
12
inxi
|
@ -2375,17 +2375,17 @@ get_partition_data()
|
||||||
BEGIN {
|
BEGIN {
|
||||||
IGNORECASE=1
|
IGNORECASE=1
|
||||||
}
|
}
|
||||||
# this handles yet another fredforfaen special case where a mounted drive
|
|
||||||
# has the search string in its name
|
|
||||||
$NF ~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$/ && ! /aufs/ {
|
|
||||||
print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main"
|
|
||||||
}
|
|
||||||
# this is required because below we are subtracting from NF, so it has to be
|
# this is required because below we are subtracting from NF, so it has to be
|
||||||
# > 1, actually greater than 4, but that is so unlikely to occur because
|
# > 1, actually greater than 4, but that is so unlikely to occur because
|
||||||
# the real issue is long file system names that force the wrap of df output: //fileserver/main
|
# the real issue is long file system names that force the wrap of df output: //fileserver/main
|
||||||
( NF == 1 ) {
|
( NF < 5 ) && ( $0 !~ /[0-9]+\%/ ) {
|
||||||
getline
|
getline
|
||||||
}
|
}
|
||||||
|
# this handles yet another fredforfaen special case where a mounted drive
|
||||||
|
# has the search string in its name
|
||||||
|
$NF ~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$/ {
|
||||||
|
print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main"
|
||||||
|
}
|
||||||
# skip all these, including the first, header line. Use the --exclude-type
|
# skip all these, including the first, header line. Use the --exclude-type
|
||||||
# to handle new filesystems types we do not want listed here
|
# to handle new filesystems types we do not want listed here
|
||||||
$NF !~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$|^filesystem/ {
|
$NF !~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$|^filesystem/ {
|
||||||
|
|
Loading…
Reference in a new issue