Commit graph

1279 commits

Author SHA1 Message Date
inxi-svn 33636dc58b small cleanup for bsd section 2014-04-27 21:06:50 +00:00
inxi-svn 052a5d16ed New version, new tarball. A bug fix for btrfs, which does not internally use /dev/sdx[number]
to identify a partition, but rather the basic /dev/sdc for example.

This made -D show wrong disk used percentage.

Also, I added --total for df that have that supported, there is however an oddity which you
can see here:

df  --total  -P -T --exclude-type=aufs --exclude-type=devfs --exclude-type=devtmpfs  \
--exclude-type=fdescfs --exclude-type=iso9660 --exclude-type=linprocfs --exclude-type=procfs \
--exclude-type=squashfs --exclude-type=sysfs --exclude-type=tmpfs --exclude-type=unionfs | \
awk 'BEGIN {total=0} !/total/ {total = total + $4 }END {print total}'
result:
614562236

df  --total  -P -T --exclude-type=aufs --exclude-type=devfs --exclude-type=devtmpfs  \
--exclude-type=fdescfs --exclude-type=iso9660 --exclude-type=linprocfs --exclude-type=procfs \
--exclude-type=squashfs --exclude-type=sysfs --exclude-type=tmpfs --exclude-type=unionfs | \
awk 'BEGIN {total=0} /^total/ {total = total + $4 }END {print total}'

result:
614562228

df  -P -T --exclude-type=aufs --exclude-type=devfs --exclude-type=devtmpfs  \
--exclude-type=fdescfs --exclude-type=iso9660 --exclude-type=linprocfs --exclude-type=procfs \
--exclude-type=squashfs --exclude-type=sysfs --exclude-type=tmpfs --exclude-type=unionfs | \
awk 'BEGIN {total=0} {total = total + $4 }END {print total}'
    
result:
614562236
       
In my tests, using --total gives a greater disk user percentage than adding the results
up manually, as inxi did before, and still does for systems without --total for df.
          
df  --total  -P -T --exclude-type=aufs --exclude-type=devfs --exclude-type=devtmpfs  \
--exclude-type=fdescfs --exclude-type=iso9660 --exclude-type=linprocfs \
 --exclude-type=procfs --exclude-type=squashfs --exclude-type=sysfs --exclude-type=tmpfs \
--exclude-type=unionfs
               
Filesystem                     Type 1024-blocks      Used Available Capacity Mounted on
/dev/disk/by-label/root-data   ext3    12479556  12015624    335816      98% /
/dev/sdc9                      ext3    20410156  18013360   1979432      91% /home
/dev/sdc7                      ext3     4904448   3785460   1016672      79% /media/sdb2
/dev/sdc5                      ext3    30382896  27467220   2295720      93% /var/www/m
/dev/sdc8                      ext3    61294356  41849300  18196972      70% /home/me/1
/dev/sdb1                      ext3   307532728 285159432  20810456      94% /home/me/2
/dev/sdd1                      ext3    26789720  18153076   7542620      71% /home/me/3
/dev/sdd2                      ext3   213310776 206932912   2040960     100% /home/me/4
/dev/sda7                      ext3    10138204   1185772   8434348      13% /home/me/5
total                          -      687242840 614562156  62652996      91% -
               
Strange, no? the data is in blocks, and it should of course in theory add up to exactly the
same thing. However, because --total lets df do the math, I'm going to use that for now,
unless someone can show it's not good.
               
inxi still falls back for bsds and older df to the standard method.
2014-04-27 20:01:35 +00:00
inxi-svn 788ca63f98 tiny cleanup, dumped a sed and use bash parameter expansion instead. 2014-04-25 03:04:36 +00:00
inxi-svn 2826619b05 New tarball, small update, added hopefully firewire support to drive type id.
That's searching for ieee1394- hopefully that will do it.
2014-04-24 20:24:12 +00:00
inxi-svn c45b522a8f added a data directory to svn 2014-04-24 20:22:27 +00:00
inxi-svn cafa625166 New version, tarball. This fixes one small oversight, placing USB in front of ID-[x]
of disk drive lists. Was showing USB ID-1: /dev/sde now shows: ID-1: USB /dev/sde
that is more intuitive and keeps the columns in alignment more or less, easier
to read.

Second, fixes a bug with some file systems / usb drives
where they do not use usb- in the /dev/disk/by-id line but only wwn-
https://access.redhat.com/site/documentation/en
-US/Red_Hat_Enterprise_Linux/5/html/Online_Storage_Reconfiguration_Guide/persistent_naming.html
explains it somewhat.

the fix is adding a second if null test of the device /dev/sdx in by-path, that seems 
to fix the issue. by-path does have the usb- item, though it does not have the name
so it's not as reliable in absolute terms, but it's fine as a second step fallback 
option.
2014-04-24 18:56:23 +00:00
inxi-svn 9ceb7b8cb1 dmidecode output cleanup, for dev memory stuff. 2014-04-15 00:44:02 +00:00
inxi-svn 3c75f53521 text edit, nothing. 2014-04-14 21:01:34 +00:00
inxi-svn a4ea1d50aa removed _placeholder function name part, no reason for it. 2014-04-14 20:55:27 +00:00
inxi-svn 1e2a0d28c5 small adjustment for force dmidecode, error message fixed. 2014-04-14 20:45:50 +00:00
inxi-svn 6a2a82c1bf While this release has some new features, they are all intended for development use
for the next major feature, -m / memory, so there is no particular reason to package
this release. There is a new development option, -! 33, which lets me override /sys
data use for -M, which is useful to debug dmidecode output for -m and other features.

No new version, new man. There may be a few more of these releases, but functionally
there is no particular reason to make a new package if you are a maintainer, so there
is no new version number. This release is a preparation for some branches/one/inxi
tests that will be run in the future.

The man/help document -! 33 just to have it there, but it should make no difference
to anyone but me at this stage.
2014-04-14 20:35:38 +00:00
inxi-svn 7e0535d4c2 A few fixes to 2.1.20, bmips broke in some cases, that's fixed now. Also changed the
way to handle bad ARM data, when bogomips are too low, < 50, we try to get the data
from /sys, but now this runs on all the cores, so it may work as well on the multicore
arm if the /proc/cpuinfo has bogomip that is too low and no cpu frequency.
2014-04-09 07:11:43 +00:00
inxi-svn d473167200 quick check of cpu 2014-04-09 06:30:46 +00:00
inxi-svn fdd359621b forgot to remove a debugger, grr 2014-04-09 01:00:11 +00:00
inxi-svn 904290c8a0 bug fix, forgot a $ sign 2014-04-09 00:26:12 +00:00
inxi-svn a2ec193fd6 New version, tarball, ARM cpu /proc/cpuinfo has broken the bogomips output, since this
is an upstream bug, I'm adding in a quick hack that will work maybe for single core
ARM cpus, but NOT for multicores that have the same issue.
2014-04-09 00:17:54 +00:00
inxi-svn 48700dbe25 tiny bug fix, googlecode was spelled goooglecode, heh. 2014-04-08 22:55:27 +00:00
inxi-svn 0647816d98 found another small bug/issue, which will impact probably nobody, inxi was using an obsolete kde command
kde-config rather than the current: kde4-config, so now it tests if the commands exist, tries kde4, then kde5 then kde

this is probably not used by any distro so it does not matter, but it was wrong so it's fixed now.
2014-04-06 23:19:54 +00:00
inxi-svn bb90012cd7 New version, tarball, correction of loop counts for -p/-P ID-<number>, this
requires
a third counter to get all the stuff right. Sorry about the extra release, that's 
life.
2014-04-06 21:35:15 +00:00
inxi-svn 65880a7f33 small bug fix, with -P the counter was printing the i instead of the counter for ID 2014-04-05 05:32:18 +00:00
inxi-svn 6efc583f6b raid, shortened the output lines a little 2014-04-04 18:45:08 +00:00
inxi-svn ebca1c219d New version/tarball. This completes, I think, the line wrap update. -o is now handled,
unmounted drives.

IMPORTANT: some distros use inxi for detecting partitions, the syntax on the following 
have changed slightly:

HDD: per drive changes from: 1: id: to ID-1:
Partitions: per partition changes from ID: to ID-1:
Unmounted partitions: per unmounted changes from ID: to ID-1

You see the pattern, they are all the same now, and they are all numbered. I think this
is easier to read when scanning long lines of drives/partitions, or even short ones.

Also fixed a long standing oddity, not a bug, but for some weird reason, -p did not
include the location, like /dev/sda1, unless -l or -u were used. That makes no sense
so I have moved the dev/remote location output to standard -p/-P

Except for bug fixes, this completes the overally line wrap update, all lines wrap,
you can set widths with -y now, and the old issue of not fitting nicely into 80 column
wide widths is solved. Note that in some areas, p/P for example, at times if the mount
point or remote location is very long the line may still wrap, but making this perfect
is too convoluted so I'm calling it good enough now, all lines are handled reasonably well,
certainly radically better than before 2.1.0.
2014-04-04 18:16:45 +00:00
inxi-svn e500c8a5a0 a few more man page edits, I keep missing stuff. 2014-04-04 02:50:31 +00:00
inxi-svn 740f080ba5 a few more man page edits, style stuff mostly. 2014-04-04 02:47:08 +00:00
inxi-svn da24d2bbf9 one last one, really, forgot to change .I to .B for path line. 2014-04-03 20:08:01 +00:00
inxi-svn 2b1dd96e26 turns out redhat man pages underline links, so I had to change all path stuff to use \fB instead of \fI in man page.
This should be the last change.
2014-04-03 19:52:32 +00:00
inxi-svn d7aa8e2999 forgot -y example option item 2014-04-03 19:42:26 +00:00
inxi-svn 25e65c75b3 fixed a last line spacing in man page 2014-04-03 19:01:00 +00:00
inxi-svn 8d157dfc61 fixed some typos 2014-04-03 18:42:08 +00:00
inxi-svn d93bdbff75 last updates on the man weechat stuff. 2014-04-03 18:40:24 +00:00
inxi-svn e8682740e7 fine tuning of man page, that's it now I think. 2014-04-03 18:37:53 +00:00
inxi-svn 5c80036a8f I think this is the last man page edit, cleaning up line breaks and spacing stuff. 2014-04-03 18:35:14 +00:00
inxi-svn 7e517ce378 editing the man page, let's see if it improves. 2014-04-03 18:28:18 +00:00
inxi-svn 92d2c23330 fixed some man pages glitches. 2014-04-03 18:18:24 +00:00
inxi-svn b981dbdcce fixed man pages, made more consistent highlights for I and R types.
Updated weechat data to reflect that weechat is now like most other irc console clients
with /exec -o functionality.
2014-04-03 18:15:23 +00:00
inxi-svn 46308502e4 forgot to highlight the globals in man page 2014-04-03 17:54:30 +00:00
inxi-svn f543d2cb72 small fix, noted that long options do not work with -y 2014-04-03 17:52:24 +00:00
inxi-svn 7ea015abef New version, new man page, new tarball. Added -y [integer >= 80] option. This allows for absolute override
of width settings. This overrides any dynamically detected widths, as well as the globals:
COLS_MAX_CONSOLE='115'
COLS_MAX_IRC='105'
Now that inxi widths are largely dynamic in terminal, with a few lingering exceptions, it made sense
to also allow for overrides of this. This is useful in cases where for example you want to output
inxi to text file or for other purposes, or if you just want to test the widths, as in my case.

-y cannot be used with --recommends, but otherwise it works fine, with --help/-c 94-99 you have to 
put -y first in the list of options.

Example: inxi -v7 -y150 > inxi.txt will ignore the terminal settings and output the lines at basically
max length.
2014-04-03 17:46:31 +00:00
inxi-svn 713535277b fixed a small bug in 2.1.16 that broke irc line counter 2014-04-03 05:11:36 +00:00
inxi-svn 26e1d560c3 New version, tarball. This fix only impacts bsd sed, but it fixes the line length failure
issue because bsd sed doesn't work with \x1b, but it does when you do:
ESC=$(echo | tr '\n' '\033' )
I found this trick on:
http://unix.stackexchange.com/questions/42321/how-can-i-instruct-bsd-sed-to-interpret-escape-sequences-like-n-and-t

No other changes. Non bsd users, you can ignore this.
2014-04-03 04:30:30 +00:00
inxi-svn f75d42d43d tiny spacing glitch on -d fixed 2014-04-02 01:06:17 +00:00
inxi-svn b49c7fa48b small bug fix with null partitions array print out 2014-04-01 22:09:29 +00:00
inxi-svn a1d4e0be88 small bug fix, forgot to check for null value in i printout 2014-04-01 21:26:15 +00:00
inxi-svn befef56f93 new version/tarball. This corrects some subtle issues with line wraps:
Audio -A - now wrap is fully dynamic down to 80 characters, and also the expansion of ALSA
to Advanced Linux Sound System only happens if that fits in the display width.

-N/-n/-i - Most networking/ip address stuff wraps now.

-d - optical drive data wraps better now too.

This more or less completes the line wrap redo.
2014-04-01 21:02:47 +00:00
inxi-svn 62b543974b Forgot, added slitaz-release to distros derived. that's as slackware derived one. 2014-04-01 01:11:08 +00:00
inxi-svn 0477d886c3 added slitaz-release to distros derived, that's a slackware one 2014-04-01 01:09:46 +00:00
inxi-svn 11f1097d01 new version/tarball. Tiny fix in debugger, it turns out that in some systems, the command:
strings --version used in the debugger results in a hang, which you can duplicate with:
strings 
alone, without any argument or info, that will hang too, so I assume if the system doesn't
have the --version parameter, strings ignores that, and basically just does what it would do
with no option, hang.

Thanks for user ypharis persistence in tracking down this issue. So far only appeared on slackware
based distros, but since the debugger should 'just work', removing the version test.
2014-04-01 00:52:57 +00:00
inxi-svn 1ed6348436 tiny fix, added back in missing dash - to inxi debugger output file 2014-03-31 18:51:55 +00:00
inxi-svn 75cb0eca7c New version, only relevant to Porteus distro, a slackware derived distro, should now id it
correctly. No other changes.
2014-03-30 18:55:38 +00:00
inxi-svn ee653828ee added debugger collection item, not for any current feature, but maybe in the future. 2014-03-28 20:17:31 +00:00