Commit graph

493 commits

Author SHA1 Message Date
inxi-svn af0420a1ed (change version)
by request, added option to output contents of sources file(s).

Reads all sources (currently only for apt systems like debian/ubuntu and derived), then prints out file name, and the file active repos. 
Does not print out inactive, commented out, or blank lines.
2009-10-12 22:28:10 +00:00
inxi-svn c41e02bfb8 moved fs output 2009-10-10 03:58:22 +00:00
inxi-svn 3ae77ae353 (change version)
added partition fs type output
2009-10-10 03:50:32 +00:00
inxi-svn 3a91faffee logic cleanup in printout function for hdd data 2009-08-07 00:51:10 +00:00
inxi-svn 2229da51b6 updated help menu for -v 5 2009-08-07 00:36:15 +00:00
inxi-svn 85c82cfe25 added -v 5 full disk output 2009-08-07 00:35:17 +00:00
inxi-svn 5e23f6caa4 updated comments 2009-08-07 00:28:07 +00:00
inxi-svn 38475a5e4b typo fix 2009-08-07 00:24:15 +00:00
inxi-svn 2495326bc8 tweak, upped max per line short disks output to 5 2009-08-07 00:23:58 +00:00
inxi-svn ddcfc1f85c bug fixes, tweaks, code cleanups for hdd printout 2009-08-07 00:22:17 +00:00
inxi-svn 8768c2b0dd code cleanup 2009-08-07 00:07:41 +00:00
inxi-svn e41eeea227 maybe svn glitch, double checking 2009-08-07 00:05:57 +00:00
inxi-svn d57cbf4b1e svn ci error, change version, line wrapping for hard disk output, bug fixes in print out sections. 2009-08-07 00:04:04 +00:00
Trash80.v2.0 69b0694e91 corrected the cpu input, accidentally added bugfix to wrong line. 2009-08-05 04:59:55 +00:00
inxi-svn 242dc4e829 (change version)
fixed very obscure gensub/gawk bug that makes integers into strings if 501-1000 when number is generated by gensub. This bug makes the 
number typed as string, which makes > tests always true.

Also fixed output bug where there is nothing in main fan data, but there is something in default fan data array.
2009-08-05 00:56:27 +00:00
inxi-svn 2201b388c9 (change version)
bug fix for cpu data. Make sure all cpu counts are > 1 for tests.
2009-08-05 00:26:28 +00:00
inxi-svn a2c6aabcd8 (bug fix / tweak)
Added back in -s show sensors always to avoid confusion, but turns off if error message for -F output. This is to avoid spam yet still 
have it work always as expected.
2009-08-04 00:21:54 +00:00
inxi-svn 0d24ff1bcb added -h -s message about -! 1 test flag to see why no error output for sensors 2009-08-04 00:13:48 +00:00
inxi-svn 588dcac434 (change version)
By suggestion, now show no sensors output if error condition: missing sensors app OR no sensors output
This can be overridden for debugging by override with -! 1 flag, testing 1
2009-08-04 00:12:26 +00:00
inxi-svn 5c12898d86 (tweak)
Added to sensors CASE fan test explicitly to sys fan array.
2009-08-04 00:01:43 +00:00
inxi-svn 6649e5c794 bug fix, handled case of multiple gpus and temps 2009-08-03 08:21:11 +00:00
inxi-svn a890e72a7f bug fix to ati detection gpu temp 2009-08-03 08:14:43 +00:00
inxi-svn c7cda10cf0 (change version)
Added nvidia/ati-fglrx gpu data output to sensors
2009-08-03 08:11:30 +00:00
inxi-svn e792d57762 made cpu flag string code more readable 2009-08-03 07:07:31 +00:00
inxi-svn a18aa882a8 tweaked cpu flag short output to handle sse4a and sse4 and sse5 2009-08-03 06:59:17 +00:00
inxi-svn aaf69ff9d2 altered -x help text a bit to make it more clear 2009-08-03 06:04:25 +00:00
inxi-svn 0fb63a489f bug fix, since it's basically not possible to control charset of output consoles, removing the degree circle from sensors output. It
failed on 8859-14, for example, but works on utf-8 and 8859-1, but rather than fight endless charset locales stuff it's easier to just 
dump it.
2009-08-03 04:48:29 +00:00
inxi-svn fcc98e7c11 Added which sudo test, added more comments to explain what is happening. 2009-08-03 04:38:27 +00:00
inxi-svn 042cd2cd65 tweaked help and comments for the sudo information, it requires sudo -V 1.7 or newer to use -n option.
If older, sudo will just error out, which is fine for now, it always works as root though. Eventually all systems will support this, so 
there's no real need to test for version numbers of sudo I think.
2009-08-03 04:32:29 +00:00
inxi-svn 093a11e67d (change version)
small new feature: show with -x, extra options, hddtemp data for -D data, if hddtemp installed, and if user root, or if user is in 
/etc/sudoers with: <username>  ALL = NOPASSWD: /usr/sbin/hddtemp

Another nice little sys admin thing.
2009-08-03 03:57:20 +00:00
inxi-svn 0bc773464f (change version)
More fine tuning of sensors. Handled case where temp 1 or 2 is greater than temp 2 or 1, but fan speed is zero for the hotter case, and is 
> 0 for the cooler case. This means that the cpu fan will be the cooler temp.

Added an attempt to set mobo fan speed if fanx is > 5000k rpm, those little fans will always be fast and on mobo, or almost always.
2009-07-31 22:26:09 +00:00
inxi-svn a402275233 more comments tweaks and clarifications 2009-07-30 01:09:58 +00:00
inxi-svn da55d78f6f tweaked comments in sensors section 2009-07-30 01:07:27 +00:00
inxi-svn f410dc896c small tweak to double check that only valid temp data gets used in regex 2009-07-30 01:00:24 +00:00
inxi-svn 1452797265 (change version)
bug fix in sensors counting and detection.
2009-07-30 00:39:57 +00:00
inxi-svn 4b1296685c added variable declaration to sensors 2009-07-30 00:22:49 +00:00
inxi-svn 06b50b2946 bug fix for missing names for hard disks, now shows temp data content instead of Name n/a, which is more useful. 2009-07-30 00:21:12 +00:00
inxi-svn 1c960eefc2 (change version)
Redid the logic for sensors to be totally dynamic and regex driven, no more hacks.

This should drastically help with fringe case data handling, and solved all the posted data samples of sensors output
2009-07-29 20:47:22 +00:00
inxi-svn b8d0abd743 (change version)
New feature: -s option triggers sensors output, also -F adds it.

Shows all that can be gathered, cpu/mobo temp, cpu/mobo/psu fan speed, sys fan speeds.

Also cleaned up some non clear code in inxi.
2009-07-28 22:44:21 +00:00
Trash80.v2.0 51014234cf fixed color bug I caused, I changed default to 0 for my theme and it went to commit. Reversed it back to 2. 2009-07-08 03:57:34 +00:00
Trash80.v2.0 1646b83668 'yeah' somehow jumped in. Removed before allowing updates. Should be find now. 2009-07-08 03:52:13 +00:00
Trash80.v2.0 3c36885806 released qt4 konvi 'fix' and updated main. Had to reorder tests so that $PATH is updated before dependencies are searched. 2009-07-08 03:50:28 +00:00
inxi-svn 58b3c54d61 added finch to trunk, reordered case list 2009-06-07 01:55:40 +00:00
inxi-svn 313d023c01 added comments for logging 2009-05-29 03:27:19 +00:00
inxi-svn aef0494669 added cat and sys info logging for 9, 8 default, 10 color logging 2009-05-29 03:18:36 +00:00
inxi-svn 7745b3c004 code cleanup for sed for logging 2009-05-29 00:19:46 +00:00
inxi-svn 80f2f2a508 fixed numbering 2009-05-29 00:05:26 +00:00
trash80.v2.0 c6d9f65838 Still a gawk bug loomed. Fixed now. inxi will exit in Ubuntu with gawk requirement only now. (or any other distro gawk-less). 2009-05-28 23:48:35 +00:00
inxi-svn 5c92c093fc debug comments 2009-05-28 23:12:00 +00:00
inxi-svn 4a81c302ad added logging for -@ 9 and 10, update version 2009-05-28 23:08:18 +00:00
inxi-svn ede1de3594 bug fix 2009-05-28 20:41:14 +00:00
inxi-svn dbabc6ee44 updated date on inxi 2009-05-28 20:35:11 +00:00
inxi-svn 462fff6b5d updated trunk inxi 2009-05-28 20:26:29 +00:00
inxi-svn b59210e006 (updated number) 2009-03-20 21:13:46 +00:00
inxi-svn 3bb4cf508c (change version)
fixed a subtle spacing issue that sometimes makes some data change irc colors, now all spacing should protect against that.
2009-03-20 21:13:11 +00:00
inxi-svn d58622e6b5 (no version change)
But update packaging anyway. 

This just updates the -h menu to better reflect what the options currently do.
2009-03-17 05:14:12 +00:00
inxi-svn f2d857a591 Removed some debugging stuff 2009-03-17 02:00:56 +00:00
inxi-svn d66bf2a2c2 Added in root test for rest of get gfx data sections to avoid debugger gfx errors 2009-03-17 01:56:21 +00:00
inxi-svn 1a42ad59f0 (change version)
Removed redundant line printing output for debugger > 5. Why this even existed is beyond me, it does nothing to help debug.
2009-03-17 01:53:02 +00:00
inxi-svn 3bfc7ec9cb (no version change)
Some code clean up, got rid of a few more awk one liners, and added back in the local variable.
2009-03-17 00:09:52 +00:00
inxi-svn ef7a785e32 (no version change)
Removed redundant line of code in print gfx function.
2009-03-16 23:54:59 +00:00
inxi-svn f420cdd007 (Change Version)
Fixed long standing bug with root user getting null output for res or tty, now if in X, shows message that gfx data is not available 
to root.

Also added null case handling for some of the gfx output to show N/A instead of null. This lets me know which detection fails, which 
should make debugging a bit easier long term.

Turned off the advanced glx info line as well for root user.
2009-03-16 19:41:11 +00:00
inxi-svn 93d7ab3058 Finally tracked down and fixed the raijeken bug with wrong glx information showing, also added glx information for all cards, not just
not free ones.

After all, non free shouldn't show more information that free, that hardly seems fair.
2009-03-14 04:23:15 +00:00
inxi-svn bfb73bf0b6 (change version)
quassel support added, 3 cases, for quassel, quasselclient, and quassel monolithic (unused now))

Also expanded all the gawk in that section to make it more consistent.
2009-03-13 22:39:49 +00:00
inxi-svn 70b4e1fb5b comment clean up 2009-03-02 02:38:16 +00:00
inxi-svn 026df46dfd (change version)
Fixed problem with false /dev output for /dev/root, needed to set partition to null again when located in uuid or label
2009-03-02 02:32:16 +00:00
inxi-svn b0d098b863 comment tweak 2009-03-02 02:25:53 +00:00
inxi-svn 80629e6c4b Comment fix 2009-03-02 02:20:19 +00:00
inxi-svn 89f34cb567 code cleanup 2009-03-02 02:19:02 +00:00
inxi-svn 969bac7f8b comment fix 2009-03-02 02:18:40 +00:00
inxi-svn 778ab41d79 bug fix 2009-03-02 02:16:29 +00:00
inxi-svn a1d3fb0d32 Bug fix 2009-03-02 02:16:10 +00:00
inxi-svn 9a4e3433c5 (no version change, but update)
Added wrapped mount point output
2009-03-02 02:15:06 +00:00
inxi-svn 18c22cbadf (change version)
fixed bug with strange partition data wrapping in df, should now show root again in fringe cases
2009-03-02 01:55:48 +00:00
inxi-svn 63316984f3 (change version)
New feature in swap partition data: show percent used, this is a damentz patch
2009-03-02 00:52:09 +00:00
inxi-svn 8a9c3388a9 didn't workO 2009-02-26 17:17:12 +00:00
inxi-svn 812417b90a trying to handle weird space in name case 2009-02-26 17:15:09 +00:00
inxi-svn 10f94c950f small bug fix in awk, now will output whole usb line 2009-02-18 06:57:28 +00:00
inxi-svn 7fd903ca68 a few cosmetic code tweaks to 1.0.3, no version change 2009-02-18 06:45:49 +00:00
inxi-svn c0c4a4c480 finished up help menu items for branches 2009-02-18 06:33:30 +00:00
inxi-svn 555de23595 added branches three and four support 2009-02-18 06:28:40 +00:00
inxi-svn 22ca4cb17b (change version)
added damentz usb audio patch, debugged, cleaned up, should be working, we'll see.
2009-02-18 06:17:45 +00:00
inxi-svn 2cb135761f (change version)
bug fix for long file system names in partition data, now correctly shows those too.
2009-02-15 05:09:28 +00:00
inxi-svn 82d1116006 Fixed a hard disk percent used bug, needed to add /dev/dm-<number> to pattern 2009-02-12 05:22:12 +00:00
inxi-svn ea48c34edb Added support for file system names with 2 or fewer spaces in partition info, fringe cases, but 1.0.0 should be handling most fringe cases
decently well by now.
2009-02-11 19:29:48 +00:00
inxi-svn 9d4a80ba02 Tweak to get back all partition data 2009-02-11 18:45:00 +00:00
inxi-svn 9b53145489 Tweak for fredf errors 2009-02-11 18:36:48 +00:00
inxi-svn 014f99a0b0 trying a bug fix for a special fredforfaen case with basic partition data 2009-02-11 18:35:08 +00:00
inxi-svn c3420457b8 bug fix 2009-02-11 18:13:22 +00:00
inxi-svn 73296f647f removed label/uuid output for remote directories, that's unneeded and looks silly 2009-02-11 18:10:26 +00:00
inxi-svn 42bcefb925 bug fix 2009-02-11 18:01:17 +00:00
inxi-svn 9ca54a84f6 bug fix 2009-02-11 18:00:19 +00:00
inxi-svn 2463b71ca8 Fixed small fredforfaen bug with /home being in name of path, but not being home, so checking now for starting with /home, /, /var etc 2009-02-11 17:58:19 +00:00
inxi-svn f039fb8b17 added nfs remote mount syntax 2009-02-11 17:51:55 +00:00
inxi-svn 29b5befc07 fixed small glitch with spacing in ID for partitions 2009-02-11 17:41:23 +00:00
inxi-svn 96efd50410 Fixed a few last bugs, shortoutput fine tuned, fixed variable names for spacer elements in short output, added one new class of variable
naming, Some_Variable, for when the variable will be inherited by child functions, that way you know that the variable is going to be 
passed down, or has been inherited.

And with those fine tuning changes, time for inxi to go to version 1.0.0
2009-02-11 17:28:25 +00:00
inxi-svn 4305cd22d1 (change version)
bug fix, now it should work for all uuid/label
2009-02-07 08:09:00 +00:00
inxi-svn 0047d982e5 bug fixes 2009-02-07 07:51:09 +00:00
inxi-svn 7086344a26 bug fix for label/uuid for root, that was trickier than I realized 2009-02-07 07:48:35 +00:00
inxi-svn 76ebd9af44 (change version)
Found and fixed a small bug with / label detection in cases where root is mounted by uuid, now it works again
2009-02-07 03:58:32 +00:00
inxi-svn b383f601e4 (version change)
Hopefully close to last cleanup and tweaks before releasing 1.0.0, but we'll see if more features or fixes need to be implemented.
2009-02-05 18:52:17 +00:00
inxi-svn aaf63e5525 local variables added to cleanup 2009-02-05 02:12:18 +00:00
inxi-svn 81323c393d output for remote file systems 2009-02-05 01:59:08 +00:00
inxi-svn 95ab6339d9 cleanup, no changes 2009-02-05 01:51:34 +00:00
inxi-svn 575c743001 Fixed small arch bug 2009-02-05 01:36:03 +00:00
inxi-svn 4470d2f1f9 fixed numbering 2009-02-05 01:22:59 +00:00
inxi-svn 4e8c6b0a1d (change version)
Added new function and options, -l -u which trigger partition label and uuid output.

Either -u or -l will also automatically trigger the short -P partition flag.

To use with full partition output, use: -pul or -pu or -pl

This is one of the last major features I wanted to add, and it's because I'm sick of manually checking for uuid or label in /dev/disk..

Ok, have fun.
2009-02-05 01:19:32 +00:00
inxi-svn ad6da8977e Fixed bug in ht detection, much simpler now, this should work I hope. 2009-02-04 06:32:10 +00:00
inxi-svn 460f028877 (Change version)
This fixes the multiple physical cpu missing data.

I had to simplify the ht/smp part to make it work, also, from what I can tell, we only really need the terms:
UP
SMP
HT
SMP-HT

which cover all possible scenarios from what I can tell

http://en.wikipedia.org/wiki/Symmetric_multiprocessing says that it's all basically smp, single cpu, dual core, or multi cpu, single or 
multi core.
2009-02-03 22:20:11 +00:00
inxi-svn 5a35c5fb12 (Change version number)
Fixed syntax of gawk, made it all consistent, one method for everything, hanging { now in gawk for all structures and flow controls

Fixed small double space thing for kernel output also.

Removed all one liners from gawk, like BEGIN { IGNORECASE = 1 }, and now use NO one liner flow controls at all. This is the new 
convention, neither trash nor I were comfortable enough with gawk to really check the actual programming syntax, but now it's kind of 
obvious that the same rules apply: all one liner flow controls hide logic, and give bugs somewhere to live. Same as any other language. 
What a surprise.
2009-01-26 22:44:52 +00:00
inxi-svn 959caae1f7 bug fix, update version number, removed extra {...} in if clause.
This doesn't fix the main xeon failure though
2009-01-25 02:22:16 +00:00
inxi-svn cf7508d125 fixed inxi 2009-01-25 00:57:17 +00:00
inxi-svn faf51975dc Added sample dual cpu, dual core xeon to modules/data 2009-01-25 00:55:34 +00:00
inxi-svn e70bead7c0 Added pardus to distro supported list, changed date to be straight: day month year 2009-01-23 17:43:15 +00:00
inxi-svn 5b6a953013 improved comments 2009-01-09 03:45:32 +00:00
inxi-svn 5e8d6f9194 added comment to clarify tests 2009-01-09 03:24:37 +00:00
inxi-svn 1b19321e2c fixed bug with space in user partition names in hard disk size 2009-01-09 02:24:25 +00:00
inxi-svn 7006e1a062 more indentation cleanup 2009-01-06 22:22:56 +00:00
inxi-svn aebbdbe6c6 small whitespace clean up 2009-01-06 22:20:06 +00:00
inxi-svn de13eba739 Refactored, a few cosmetic changes. 2009-01-06 22:13:48 +00:00
Trash80.v2.0 8e40abc247 commit the HT, SMP, etc changes. All tests seem to pass 2009-01-05 22:02:38 +00:00
trash80.v2.0 f0a0a2bac6 fixed hdd bug caused by missing $ in var. Merry Christmas 2008-12-25 12:23:30 +00:00
trash80.v2.0 9179e6a477 Testing seems to have gone ok, still working on damentz patch. The code seems quiet good. H2, awesome job on it :) Any thoughts about inxi 1.0 ? 2008-12-24 09:59:03 +00:00
trash80.v2.0 cfa634c6bc reconfigured lsb lookup, h2's fix 2008-12-21 04:45:31 +00:00
trash80.v2.0 78722b3748 forgot revision change for lsb fix 2008-12-20 18:54:18 +00:00
trash80.v2.0 3d875c7f5e lsb fix for distros with known good lsb files 2008-12-20 18:52:54 +00:00
inxi-svn aef42dccf7 Bug fix, use latest 2008-12-17 04:16:30 +00:00
inxi-svn 949dea7af1 (Version Change)
Added 32/64 bit output on System -S line
2008-12-17 04:09:01 +00:00
trash80.v2.0 18a41b9c0a forgot to update date 2008-12-16 23:13:39 +00:00
trash80.v2.0 e18f634857 Correct runlevel check 2008-12-16 23:12:27 +00:00
inxi-svn 59c49120de (Change Version - BIG BUG FIX!!)
Moved the get params back after setting konvi params
2008-12-15 00:12:05 +00:00
inxi-svn 61f9f89744 (change version)
Fixed debugger for real this time, now it actually works as intended. The infobash debugger never worked at all, unless 
you explicitly turned it on with debugging flag. Now it does.

Pre script up errors will be stored in the error array, and printed out if found automatically no matter what the 
debugging flag is set to.

This is a perfect example of why using highly compressed code with no explicit variable declarations is ALWAYS a bad 
idea.
2008-12-14 17:20:02 +00:00
inxi-svn 1ea30c905a (change version)
fixed more in debugger, at least now it's clear that it basically does nothing in its current state but print some stuff.
2008-12-13 21:34:38 +00:00
inxi-svn a2a6dc0aeb Fixed bugs in debugger logic, it simply wasn't working at all, things were out of place, fails to run when needed. 2008-12-13 21:15:51 +00:00
inxi-svn 3bb0d7d087 Fixed cpu flag line print as well, uses arrays now, so no need to use numbered line outputs etc. 2008-12-05 05:54:07 +00:00
inxi-svn 688e10e858 refactored partition data output to be fully dynamic, not silly like it was.
Also fixed small line length bug where if color scheme 0, no colors is used, the lines would be too long, since the byte 
count is then less than for irc or shell colors.
2008-12-05 05:21:34 +00:00
inxi-svn 8eaecad89c (change version)
removed pipe from glx line, forgot that one.
2008-12-04 01:22:19 +00:00
inxi-svn c2c2fc3b62 (Change version)
Added one more output line, for a total of 9. That's enough.
2008-12-03 23:46:16 +00:00
inxi-svn add4893ea5 updated version number 2008-12-03 23:30:21 +00:00
inxi-svn a9efabe032 changed from *** to ###, gensub doesn't like *, even escaped 2008-12-03 23:30:01 +00:00
inxi-svn 5ac99045d4 small tweak to make <username> to *** to make it shorter 2008-12-03 23:26:10 +00:00
inxi-svn e582218d3e (Change version)
New option -p, outputs all discovered partition information along with the -P stuff.

-P was improved to also show /tmp and /usr by default.

-p will not show with -F to avoid flooding issues.
2008-12-03 23:14:21 +00:00
inxi-svn 6367977a83 (no version change)
Added comment explanation for echo -ne main print
2008-11-24 04:46:00 +00:00
inxi-svn e2dcdf9ab5 (Change Version)
Bug fix, caused extra line space in terminal.
2008-11-24 04:43:27 +00:00
inxi-svn 5e8f77fd64 (Change Version)
This is another milestone, hit much sooner than we thought. We have now restored the broken konversation native script 
support.

This will be of special interest to distros who want to include inxi as native, or to packagers.

Basically, all that is needed is to set this symbolic link:

ln -s <inxi location, ie: /usr/bin/inxi, or /usr/local/bin/inxi> /var/share/apps/konversation/scripts/inxi

in the package post install script.

This will automatically enable native, ie: /inxi support in konversation.

Fixed a few other small bugs, and cleaned up code and comments as well.

We were almost going to call this release 1.0.0, but we'll leave that until it's absolutely certain that everything is 
debugged and working.
2008-11-24 01:46:31 +00:00
inxi-svn 752420c0a4 (no version change)
removed v: from inxi version string
2008-11-23 19:37:51 +00:00
inxi-svn 4a44b096bd (change version)
Added show driver version for Network/Audio feature for -x output, and updated help menu to show that.
2008-11-23 18:22:59 +00:00
inxi-svn a07c2b19bc Added option, with -x, to show, if available, kernel driver module version number.
Note, this is not often available data, so it will only show if you have it.

This requires modinfo showing ^version: data, which only sometimes is there.
2008-11-23 18:12:56 +00:00
inxi-svn ad3947c121 (change version)
Small hard disk data output tweak, added : and removed (..) to numbers, this should help avoid some
2008-11-21 23:55:04 +00:00
inxi-svn 05b4010e28 (Big Version Change)
This fixes weak spots, bugs, and adds new features.

1. Fixed single core output for -C option, now correctly puts speed on same line
2. Fixed bug with some possible values for network card that makes line color trigger blue: Added space between values.
3. Fixed bug that makes livecds with aufs file system show all partition  information
4. Removed -F output of -f to avoid pointless irc spam
5. New option, -i - triggers when used alone -N, networking line, plus Wan IP address of system, and if ifconfig is 
installed, prints out all interfaces+ip addresses
6. Updated -h menu to reflect these changes.
7. Added 'driver' output for network cards, and fixed driver output for audio cards, so now only uses asound/cards data 
if single card detected. 
8. Moved 'ports' data to -x option, the geek only output that is.

This is the next major version release, 0.6.x
2008-11-21 22:32:27 +00:00