Commit graph

570 commits

Author SHA1 Message Date
inxi-svn 50e07be10b tweaked help menu for -F option, excluded -t noted. 2010-02-13 04:45:48 +00:00
inxi-svn d8a491a3c7 added -t option output to -x on help menu. 2010-02-13 03:43:11 +00:00
inxi-svn 336b27e127 fixed error 7 message 2010-02-13 01:39:53 +00:00
inxi-svn 41d501a798 cleaned up error message for -t 2010-02-13 01:35:59 +00:00
inxi-svn bc1795809c bug fix for output of number 2010-02-13 01:27:35 +00:00
inxi-svn 0c5674b4f9 (change version)
New option: -t 
requires extra args c, m, or cm (cpu, memory, or both). Accepts further additional option: 1-20

This will show top cpu processes for default number or user selection, and top memory using processes.

Sample: inxi -t c7
2010-02-13 01:21:29 +00:00
inxi-svn fa26506a22 (change version)
the inevitable bug with method change, updated and restored lost features using /sys/block method
2010-02-07 08:25:27 +00:00
inxi-svn 7f3c89b63c (change version)
updated to handle new /sys/block syntax to get device name for disks. This will require further work to actually make solid, but this fix 
makes 
it work for now.
2010-02-07 07:47:07 +00:00
inxi-svn c90ed16e7b (Change version)
Found another issue, for snd modules, we have to use array item 3, kernel modules loaded, not driver

driver for sound modules is a name, not a module name, and also the reported modules need further processing, - to _ and tolower in case.
2010-02-05 23:21:37 +00:00
inxi-svn c0d50a4a26 (Change Version)
fixed another small bug that made the print for busid use wrong data, forgot to clean , from original array data.
2010-02-05 23:04:02 +00:00
inxi-svn 8ff14cda78 cleaned up small trailing whitespace issue with ports output, put the cleanup where it belongs, in the data get function 2010-02-05 22:42:31 +00:00
inxi-svn a5b42c8fc0 (change version)
fixed a bug that made two networking chips of same company when identical create one single doubled driver output.

Also added in pcibus id output for -x option with networking and audio cards.
2010-02-05 22:33:07 +00:00
inxi-svn c1dff27d83 fixed bug with pardus pisi output, stripping out colors 2010-02-01 18:32:15 +00:00
inxi-svn e7e2a381a9 bug fix for pardus pisi line output, added file missing detection for arch repos 2010-02-01 18:02:37 +00:00
inxi-svn e4f8bacf31 (change version)
Refactored to gawk the arch repo processing in get_repo..
2010-02-01 17:31:46 +00:00
inxi-svn 77763f7386 fixed variable name 2010-02-01 06:33:41 +00:00
inxi-svn a5c6296f6b and some code cleanup 2010-02-01 06:23:44 +00:00
inxi-svn 58d12b30ab and more comments 2010-02-01 06:22:43 +00:00
inxi-svn 0a7cdb5ab7 code cleanup 2010-02-01 06:21:46 +00:00
inxi-svn 95dc7d47db added some comments 2010-02-01 06:20:42 +00:00
inxi-svn 19191c50e8 removed legacy comments 2010-02-01 06:19:17 +00:00
inxi-svn a153f1d3d0 order order... 2010-02-01 06:10:31 +00:00
inxi-svn 21225eda76 forgot to update help menu for -r 2010-02-01 06:09:40 +00:00
inxi-svn c364b89f48 (change version, by the way)
cleaned up wording for arch repos
2010-02-01 05:52:46 +00:00
inxi-svn 5264341430 added arch support for -r option 2010-02-01 05:51:09 +00:00
inxi-svn e253aa3028 after getting user data, added pardus pisi repo listing support for the -r repo list option.
This method will probably work for arch too I'd guess if pacman lists repos in the same way
2010-02-01 02:52:30 +00:00
inxi-svn 53bbf03cea (Change Version)
Optimized to not do repeated tests of tools for functions that are used more than one time.

Added boolean tested flags, and global app path variables to handle this.

this can knock off up to 10 or more type -p app exists type tests for one script execution.
2010-01-29 23:31:20 +00:00
inxi-svn ffd2c631ef code cleanup 2010-01-29 23:07:50 +00:00
inxi-svn b95b6a1962 (Change Version)
Found and fixed 2 real bugs:
1 - driver module version print out was broken for both networking and audio, and audio was not at all working due to improperly formatted 
module names being sent to get module driver version function.

2 - runlevel show was broken, was using a bad path. Fixed, and also made runlevels show now for -F/-xI output

Updated top comment header to correctly show true script Depends and true Recommends. Recommends section now also lists which options require 
which applications, and I updated/corrected the debian package names for each application.

Redid the recommended app testing also, now the app is only tested for locally in the get data function when it is requested.

Cleaned up some other irregular code methods.

Might be one more fix to get it more consistent.
2010-01-29 23:05:11 +00:00
inxi-svn 61c3cd7ced (change version)
Added in support for unmounted lvm type syntax in unmounted partitions function, /dev/dm-1, I forgot about that possibiliity.

Fixed/patched hfs detection based on a file -s sample data chunk. Added hfsj, which I assume is hfs+, who knows for sure.
2010-01-14 20:46:59 +00:00
inxi-svn 658921da9a added file system type for unmounted fs, if available. Uses file -s, can add it to sudoers if you want to run it as regular user. 2010-01-09 19:20:40 +00:00
inxi-svn c8a9ebec8d and some more cleanup 2010-01-09 05:00:55 +00:00
inxi-svn f02f760794 and some more variable ordering 2010-01-09 04:57:00 +00:00
inxi-svn d61404ff3f some more variable cleanup and syncing 2010-01-09 04:54:17 +00:00
inxi-svn d48147d79d some code cleanup and variable naming fixes 2010-01-09 04:49:55 +00:00
inxi-svn 80a3db7925 and put the functions in alphabetical order, all done now. 2010-01-09 04:19:15 +00:00
inxi-svn 7f76e53bec added in some logging data 2010-01-09 04:17:22 +00:00
inxi-svn bfa54a8ef5 (change version)
new feature and option: -o
shows unmounted local partitions, with uuid and label if present. Does not show with -F to avoid excessive output
2010-01-09 04:05:21 +00:00
inxi-svn aa746b3221 (change version)
found and fixed bug in awk, the test ! i in array is not supported, you have to use only: i in array

annoying, but that's life.
2010-01-08 00:51:34 +00:00
inxi-svn 8eb4d3d470 (change version)
fixed fan speed output for fringe cases, also fixed possible overwrite of fan speeds.
the fan output isn't perfect though, but it will do for now.
2010-01-07 23:59:16 +00:00
inxi-svn 829aa64b70 added up to 99 fans, that way it will never max out 2009-12-25 23:05:09 +00:00
inxi-svn 5064bc762c improved total count of fans supported for sensors output 2009-12-25 23:04:05 +00:00
inxi-svn 62b865293b (Change version)
fixed aux fan glitch in output. This was a bug, aux was simply left unhandled in some cases for fan output
2009-12-25 22:55:34 +00:00
inxi-svn 81365d855f (change version)
found a bug, inxi is using gawk before the depends check, this creates bad output in ubuntu/mint unless it has gawk.

Fixed by moving tests to after dependency checks.
2009-11-18 01:54:28 +00:00
inxi-svn 182c622d46 bug fix for multiple gpu output 2009-11-16 22:46:52 +00:00
inxi-svn 9ebba813c9 cleanup 2009-11-16 19:26:07 +00:00
inxi-svn 5531e3603f cleanup 2009-11-16 19:18:35 +00:00
inxi-svn 18704b8841 cleanup 2009-11-16 19:17:42 +00:00
inxi-svn 7809deb5e6 cleanup 2009-11-16 19:15:47 +00:00
inxi-svn f85419e8a8 (change version nu)
Added nvidia only gpu temp output for multiple gpus. If > 1 gpu screen is detected, it will output the gpu temp data for each 
discovered screen.

For 1 gpu with nvidia, it will show screen nu if you use the -x option, or with -F

This is an nvidia proprietary driver feature only.
2009-11-16 19:03:29 +00:00
inxi-svn 945ffef2b5 small tweak to logic of partitions 2009-10-14 23:09:30 +00:00
inxi-svn 1a2b56ac3e (change version)
bug fix works for dev version for partition information. Updated version number.
2009-10-14 22:56:26 +00:00
inxi-svn c1fe45f286 trying a bug fix for devBase partition info 2009-10-14 22:53:34 +00:00
inxi-svn d3bc0d6fcb code tweak for yum 2009-10-13 21:35:37 +00:00
inxi-svn 7332f3b6de (change version)
yum made more robust, added /etc/yum.conf support, added support for older syntaxes in redhat, added missing data support.

And that's it I hope for yum.
2009-10-13 21:31:30 +00:00
inxi-svn aa1fd80f5c code tweak, that should be about it, all ready to go now. 2009-10-13 20:37:11 +00:00
inxi-svn 86f5da9ea9 comment update 2009-10-13 20:34:00 +00:00
inxi-svn 15014560eb code cleanup 2009-10-13 20:29:30 +00:00
inxi-svn 57b65b7994 code cleanup 2009-10-13 20:28:55 +00:00
inxi-svn 0c7821172d updated help menu for yum 2009-10-13 20:18:53 +00:00
inxi-svn 6198d63e39 cleanup and error protection 2009-10-13 20:16:37 +00:00
inxi-svn 8171130329 bug fix 2009-10-13 20:14:45 +00:00
inxi-svn 96863ec661 (change version)
added first attempt at yum repo handling in
2009-10-13 20:09:54 +00:00
inxi-svn ec6eaec97c fine tuned wording 2009-10-13 05:12:41 +00:00
inxi-svn 3e3b8dd196 tweaked repo active wording: fits better with various distros now. Active repos in... 2009-10-13 05:10:01 +00:00
inxi-svn c843356ca7 bug fix 2009-10-13 03:05:13 +00:00
inxi-svn bf9cf87ffb (change version)
adding in a spacer in :// to turn off auto show page title in irc clients. For terminal, will not add space.

This fixes an irc client bot showing title of web pages of any url, like amybot
2009-10-13 02:50:09 +00:00
inxi-svn 1ebd24b2ff tweak 2009-10-12 23:18:16 +00:00
inxi-svn f0961d3f4e tweak 2009-10-12 23:17:59 +00:00
inxi-svn 297af994c0 (change version)
added global repo id name for printout, set in get_repo_data, this makes it forward compatible for other repo type systems than apt.
2009-10-12 23:14:29 +00:00
inxi-svn 3c011c53d5 shortened syntax 2009-10-12 23:11:36 +00:00
inxi-svn dfb0657ff9 improved wording to make it distro neutral 2009-10-12 23:10:39 +00:00
inxi-svn 3c8e84fb69 cleanup of code 2009-10-12 23:05:26 +00:00
inxi-svn 0f35a6b1fa cleanup and white space protection for line starters 2009-10-12 23:03:05 +00:00
inxi-svn 205d470410 code cleanup 2009-10-12 22:56:15 +00:00
inxi-svn 0ae3be652a bug fix, forgot to print file name contents on that iteration 2009-10-12 22:51:04 +00:00
inxi-svn 747a8da328 code cleanup 2009-10-12 22:44:01 +00:00
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