mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
(change version)
bug fix for long file system names in partition data, now correctly shows those too.
This commit is contained in:
parent
82d1116006
commit
2cb135761f
10
inxi
10
inxi
|
@ -1,8 +1,8 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 1.0.1
|
||||
#### Date: 11 February 2009
|
||||
#### version: 1.0.2
|
||||
#### Date: 14 February 2009
|
||||
########################################################################
|
||||
#### SPECIAL THANKS
|
||||
########################################################################
|
||||
|
@ -2331,6 +2331,12 @@ get_partition_data()
|
|||
$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
|
||||
# > 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
|
||||
( NF == 1 ) {
|
||||
getline
|
||||
}
|
||||
# skip all these, including the first, header line. Use the --exclude-type
|
||||
# to handle new filesystems types we do not want listed here
|
||||
$NF !~ /^\/$|^\/boot$|^\/var$|^\/home$|^\/tmp$|^\/usr$|^filesystem/ {
|
||||
|
|
Loading…
Reference in a new issue