mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
Tweak for fredf errors
This commit is contained in:
parent
014f99a0b0
commit
9b53145489
4
inxi
4
inxi
|
@ -2325,13 +2325,11 @@ get_partition_data()
|
||||||
BEGIN {
|
BEGIN {
|
||||||
IGNORECASE=1
|
IGNORECASE=1
|
||||||
}
|
}
|
||||||
/\/$|\/boot$|\/var$|\/home$|\/tmp$|\/usr$/ && ! /aufs/ {
|
|
||||||
# this handles yet another fredforfaen special case where a mounted drive
|
# this handles yet another fredforfaen special case where a mounted drive
|
||||||
# has the search string in its name
|
# has the search string in its name
|
||||||
if ( $NF ~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$/ ) {
|
$NF ~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$/ && ! /aufs/ {
|
||||||
print $NF "," $(NF - 4) "," $(NF - 3) "," $(NF - 1) ",main"
|
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
|
||||||
! /\/$|\/boot$|\/var$|\/home$|\/tmp$|\/usr$|^filesystem/ {
|
! /\/$|\/boot$|\/var$|\/home$|\/tmp$|\/usr$|^filesystem/ {
|
||||||
|
|
Loading…
Reference in a new issue