Commit graph

257 commits

Author SHA1 Message Date
inxi-svn 3061f80d1a (change version)
Some last code cleanup, comment cleanup, tweaked a few small things.
2008-11-11 23:36:25 +00:00
inxi-svn 83a50c790a (Change Version)
For some reason, wget suddenly decided to show output, so added -q to script_self_updater function wgets
2008-11-11 20:04:33 +00:00
inxi-svn a761abbda7 (Change Version)
This should be about it, some fine tuning of variables, distro id handling, and lsb file handling
2008-11-11 20:01:36 +00:00
inxi-svn e158276f5e (Change Version)
Tiny change, removed 'Error data:' string from bad cpu core count to make output neater.
2008-11-11 19:42:01 +00:00
inxi-svn 241dc099b4 (Change Version)
Final step: moved the error output switch to end of get_parameters. This lets you trigger 
the debugger -@ <debug number> flag without having to actually alter the code of inxi 
manually.

This might occasionally create undesired error output, but that's a good thing, since
that error output should be seen so we can know what the error is.
2008-11-11 19:34:25 +00:00
inxi-svn 5c754f182b (Change Version)
Added -! unsupported argument error condition.
2008-11-11 19:12:24 +00:00
inxi-svn a7d160d02d (No Version Change)
Fixed top comments a bit
2008-11-11 18:57:47 +00:00
inxi-svn 1fdc16d584 (Change Version)
Bug fix, removed scriptname from download path
2008-11-11 18:47:00 +00:00
inxi-svn df2d91cb37 (Change Version)
This is now launching inxi as an official script. Changed the default download url
to get it directly from google svn. This means that users can always reference the
official svn copy to ensure that the code is what it claims to be.

Added for development purposes new advanced testing options:
-! 1 triggers the boolean testing flag
-! 2 triggers an alternative development download
-! http://<any website>/path_to_download_directory/ (note: must end in /, and not include 
  inxi file name
  
Updated the script_self_updater function to handle variable download urls, and added an
update message that lets the person know where the update source was.

Added error handler for user provided testing download urls, if not existing, exit.

And with this, I'm handing over control to the inxi project itself.
2008-11-11 18:37:09 +00:00
inxi-svn 6003c8a002 (Change Version)
Trying out defaulting to /etc/lsb-release unless it's mint in /etc/issue, that gives more accurate readouts
2008-11-11 07:01:29 +00:00
inxi-svn 881628d7f0 (Change Version)
Added fail option for sound card test, also check /proc/asound/cards for something too
2008-11-11 05:58:15 +00:00
inxi-svn 17031b8f10 (No Version Change)
Tweaked get distro lsb data a bit to avoid confusion in the future, but no change to handling.
2008-11-11 03:15:27 +00:00
inxi-svn 11e38953c4 (Change Version Number)
Small tweak to partition printout section to make things line up better.
2008-11-11 02:51:27 +00:00
inxi-svn 3b1e36a1ee (Change Version)
A series of bug and potential bug fixes:
1. In get distro data, improved handling of unfound distros significanly, handling
lsb-release testing as a fall back in 2 cases.

2. Created a new get_distro_lsb_data function to handle that processing

3. Added a last test for lsb-release presence.

4. Fixed a small bug that made ubuntu live cd hard disk size display fail.
2008-11-11 02:31:29 +00:00
inxi-svn fd1da2523a (No version change)
Fixed typo in function call.
2008-11-11 01:18:57 +00:00
inxi-svn 5394c9555b (No Version Change)
Cleaned up help menu text a bit
2008-11-11 01:16:47 +00:00
inxi-svn 4927ee47a7 (No Version Change)
Fixed ordering of tests.
2008-11-11 01:09:04 +00:00
inxi-svn f298a77680 (Change Version)
Added fall through /etc/lsb-release test to update distro data tests.

This adds one more failsafe test to future proof the stuff against
id failures. 

I tried to also use the standard lsb_release function but for some reason
when it's run inside inxi and sent to awk it gets incredibly slowed down.
This is odd, since that command usually runs quite fast in shell.

But it's too slow as is for now to use, it makes everything hang.

Maybe later I'll add an option to trigger it or something.
2008-11-11 01:05:55 +00:00
inxi-svn c8464427bd (No Version Change)
Added : to Partition line starter, so: Partitions:
2008-11-10 23:15:05 +00:00
inxi-svn f2bcff28ed (Change Version Number)
Updated help menu to better explain this new system, and split it into two parts:
1. output control
2. additional options

This makes it easier to read and understand.
2008-11-10 23:08:07 +00:00
inxi-svn 913e9290e0 (Change Version Number)
To make it more consistent, changed -s to -A, and changed the 'Sound' line starter to Audio

This makes all primary line switches upper case, and only -f which is an addon to CPU lower.
2008-11-10 22:57:35 +00:00
inxi-svn c03db070c5 (No Version Change)
removed extra whitespace on partition line
2008-11-10 22:46:50 +00:00
inxi-svn 33b816dc5a (Change Version)
This is a major version upgrade. Fresh option set, totally upgraded, now supports per line print 
control.
Each line now has a flag to switch it on or off, and those flags will also control full line
output with verbosity levels to keep it cleaner.

Since this is a core change, the new version is 0.5.0

Also moved all debugging and testing overrides to use characters, not letters:
-% - override corrupted data
-@ [number 1-10] - Triggers debugging levels 1 - 10
-! - triggers Testing data or functions

New option list and menu:
=======================================================================================
inxi -h
inxi supports the following options. You can combine
them, or list them one by one: Examples: inxi -v4 -c6 OR inxi -dc 6
Note: extra output options (eg -f,-H,-p,-s,-x) require a verbosity level of 1 or higher.
In other words, they only work if you use either -d or -v1 (or higher)

If you start inxi with no arguments, it will show the short form.
The following options if used without -d or -v will show just that complete line:
C,f,D,G,I,N,P,s,S - you can use these together to show just the lines you want to see.
If you use them with a -v level, it will show the full output for that line.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-c  Available color schemes. Scheme number is required.
    Supported schemes: 0-15 Example: inxi -c 11
-C  Show full CPU output, including per CPU clockspeed.
-d  Default output verbosity level, same as: inxi -v 1
-f  Show all cpu flags used, not just the short list.
-F  Show Full, all possible, output for inxi.
-D  Show full hard disk info, not only model, ie: /dev/sda - ST380817AS - 80.0GB.
-G  Show graphic card information (+ glx driver and version for non free video drivers).
-I  Show information: processes, uptime, memory, irc client, inxi version.
-N  Show network card information.
-P  Show partition information (shows what -v4 would show, but without extra data).
-s  Show sound card information.
-S  Show system information: host name, kernel, distro
-U  Auto-update script. Note: if you installed as root, you
    must be root to update, otherwise user is fine.
-v  Script verbosity levels. Verbosity level number is required.
    Supported levels: 1-5 Example: inxi -v 4
     1 - basic verbose, same as: inxi -d
     2 - Also show networking card data
     3 - Also show hard disk names as detected.
     4 - Also show partition size/filled data for (if present):/, /home, /var/, /boot
     5 - For multicore systems, also show per core clock speeds.
-V  inxi version information. Prints information then exits.
-x  Show extra data: bogomips on cpu.
-%  Overrides defective or corrupted data.
-@  Triggers debugger output. Requires debugging level 1-10.
2008-11-10 22:41:58 +00:00
inxi-svn fc8221b72f (Change Version Number)
Bug fix, major, had to add back in wildcard on perl detection and handling because it can report as not just 
perl but as perl5.10.0, a single string
2008-11-10 20:03:33 +00:00
inxi-svn 5e72775218 (Change Version)
1. Fixed help menu bug, now if unsupported option, error prints out full list of options used so people can see what the 
wrong option was.

2. Refactored print_hdd_data, and split out print_hdd_partition_data to make it cleaner, and added triggers to primary 
print output function directly, instead of embedding them in the hdd print function.

3. Moved print_it_out to top of print functions, and made better comments to show how it works.
2008-11-10 17:57:52 +00:00
inxi-svn 38bd7e2aaa Fixed small show partitions bug 2008-11-10 02:50:00 +00:00
inxi-svn c8b5020760 Added -p option, show partitions. Like other custom show options, requires -d or -v 1 or greater to run. Leaving -v4 as another way
to trigger this as well.
2008-11-10 02:39:40 +00:00
inxi-svn e3d719f74a tweaked swap data collector a bit 2008-11-10 01:49:56 +00:00
inxi-svn 43ffbaa535 Added some comments to swap partition section 2008-11-10 01:48:01 +00:00
inxi-svn 991d65fbee Added to partition output, swap data, still not with percent of swap used, but that's for another day. 2008-11-10 01:10:22 +00:00
inxi-svn 2b7a30b82b Made (usb) to USB to make more readable 2008-11-09 20:28:26 +00:00
inxi-svn 7221c789fa Removed - after (usb) to keep it cleaner 2008-11-09 20:26:00 +00:00
inxi-svn 0ef4b22dcc Cleaned up some testing cases, removed and cleaned up comments, tweaked the full hard drive output a bit 2008-11-09 20:20:23 +00:00
inxi-svn b8b87ed4bf Updated help menu to note this better 2008-11-09 19:54:12 +00:00
inxi-svn d611c88df5 A few major changes: in get client data, got rid of loose detections like *xchat* or *sh* and replaced them with tight,
literals in the case list. This might trigger a few failures, but it's better to then handle those failures explicitly in 
my opinion than to depend on something as loose as *sh*, which will catch any app with sh ever made.

Moved advanced hard disk data to be triggered now by -H, to avoid spamming irc. 

In the future, -x, extra data, will only be used for really silly little things like bogomips, ports, and so on, stuff 
that's short and basically just of interest to a few people.
2008-11-09 19:51:33 +00:00
inxi-svn b1fa122748 Fixed some more weaknesses with the client detection function. 2008-11-09 08:57:27 +00:00
inxi-svn e699488a94 Fixed bug in bash method that fails in etch, old bash. 2008-11-09 08:26:06 +00:00
inxi-svn e513666122 Fixed help menu bugs, forgot to have -s, sound card, and other errors. 2008-11-09 07:36:32 +00:00
inxi-svn f96ab2c884 Fixed testing bug for advanced sdx name detection 2008-11-09 07:07:48 +00:00
inxi-svn d63f5d8d39 Made just the one test, for sh|bash|dash|perl that handles now all cases, including konversation 2008-11-09 04:16:13 +00:00
inxi-svn d019d7b7c5 fixed some bugs in get client data 2008-11-09 03:59:27 +00:00
inxi-svn 3cb1cc8d1a Fixed bug with xchat gnome handling, my error 2008-11-09 03:45:36 +00:00
inxi-svn b27b6507a1 Trying the locsmif method, querying /proc/scsi/scsi directly instead, a failure case was discovered there. 2008-11-08 23:21:53 +00:00
inxi-svn 0a6347bed9 Added null data handler for temp array scsi 2008-11-08 22:26:16 +00:00
inxi-svn 0b4058277c Trying a fix for special case where hard disk doesn't actually divide by 16, no idea why 2008-11-08 22:14:56 +00:00
inxi-svn cbe7e922a6 Added array item, usb, for advanced hard disk output 2008-11-08 21:56:16 +00:00
inxi-svn 3fa22cd051 trying some usb drive fixes, needs more work 2008-11-08 21:33:48 +00:00
inxi-svn 164d8320d4 Fixed konvi bug 2008-11-08 21:13:13 +00:00
inxi-svn 17075eeaa8 fixing convi bug now 2008-11-08 21:00:17 +00:00
inxi-svn eb820e9958 Trying a sidux patch from infobash for the wrong output, shell instead of xchat etc 2008-11-08 20:39:27 +00:00
inxi-svn 269d923b0f Added EOF marker to let smxi do its integrity check on the file. Without that the install fails. 2008-11-08 19:15:19 +00:00
inxi-svn 42684b4dc2 Tweaked help text to better explain verbosity levels and extra options like -d, -f, -x.
Fixed a small bug in the disk size calculator, now it works all with single decimal accuracy for percent used and disk 
spacke in GB. This should solve a problem on smaller disks where the total partition size fails to equal the total disk 
size, and where on single small disks, where the listed total size didn't match the calculated single disk output.
2008-11-08 18:33:40 +00:00
inxi-svn 16024b6ade Changed failure to find device name to: Name n/a 2008-11-08 07:24:52 +00:00
inxi-svn cace45adb5 fixed typo 2008-11-08 06:43:30 +00:00
inxi-svn bfcc6035eb trying hard disk size output with decimal place, one, for smaller usb drives 2008-11-08 06:27:48 +00:00
inxi-svn 78c1b52da1 Trying a different way to handle flash drives, check for space starting first field 2008-11-08 06:25:31 +00:00
inxi-svn d324cb287d Added help notes for -x 2008-11-08 06:08:55 +00:00
inxi-svn 657173834f Fixed long line wraps, rearranged hard disk info 2008-11-08 06:06:08 +00:00
inxi-svn eeacc5cdf5 Trying out a usb device fix 2008-11-08 05:34:57 +00:00
inxi-svn ac5337d56f Fixed a bug with WDC, requires for the ls -l /dev/disk/by-id test replacing whitespace with _, and trimming off the last
part of the string
2008-11-08 05:18:01 +00:00
inxi-svn fbd76c10bc Redid the hdd data stuff, split it into basic and advanced functions for main loading of data array, then further
population of it for -v levels > 2. 

With -x option, also puts out /dev/[hs]dx and drive size as well, per drive
2008-11-08 04:50:09 +00:00
inxi-svn 394a53fdf3 Added -F, for full output option, by popular demand, to show everything supported by inxi 2008-11-07 20:55:37 +00:00
inxi-svn 3fb2d605a2 Updated update error to be more accurate 2008-11-07 20:48:13 +00:00
inxi-svn eb81af5e82 Made sound show with -s option; removed showing help menu on mistyped option, or unsupported option, this would make
spammy irc stuff. Instead shows message to run inxi -h for more information
2008-11-07 20:45:25 +00:00
inxi-svn 78a2872406 made tolower in awk instead of bash for cpu vendor compare 2008-11-07 20:04:28 +00:00
inxi-svn 2122cff7ca Made all awk gawk to keep it consistent, this is the type of randomness we need to avoid in the future. 2008-11-07 19:59:11 +00:00
inxi-svn aecf66bac7 Fixed a bug reported for partition information output, case where df splits its output lines because the first field is
too long. Now the get partition info function reads back from the last item per record, not from the first one. Since the 
detection is based on the last item in the  line, this should maybe fix that issue. Seen with LVM naming for example.

We'll see if this works or not.
2008-11-07 17:38:30 +00:00
inxi-svn ee0740046f some last cleanup of code 2008-11-06 23:08:34 +00:00
inxi-svn fd5ca8a6e2 Made all awk code endings the same, }' )... in all cases, or }' /file/path, or whatever 2008-11-06 21:39:18 +00:00
inxi-svn fe2fdf78e5 fixed typo in awk in get gfx x data 2008-11-06 21:33:14 +00:00
inxi-svn f027067ddf cleanup 2008-11-06 21:18:11 +00:00
inxi-svn f8e193103d fixed a few small errors 2008-11-06 21:03:19 +00:00
inxi-svn 84d1fb5ab0 gawk code cleanup, got rid of all one line flow controls, got rid of all ; separated statements, made all gawk code line
up with columns it occurs in.
2008-11-06 20:58:35 +00:00
inxi-svn 82c3d091a8 Got rid of sanitize_data feature, which forces double dips into awk, instead I put hte cleaners for , and whitespace into
each awk statement. This avoids exiting awk, then looping through the array in bash, then sending the array items to the 
cleaner function, back into awk, then sending it back, and rebuilding the array.

I tried putting the gawk cleaners into a variable and using the variable, but that didn't work as expected, but I'll see 
if i can figure out how to get that working.
2008-11-06 20:32:19 +00:00
inxi-svn c2f692c068 Corrected misnamed cpu/normal ban lists, no longer calling working lists A_... 2008-11-06 19:59:58 +00:00
inxi-svn 3873d50e86 Made all if conditionals use the same syntax, [[.....]];then, since we couldn't get rid of all the [[ stuff without
getting errors, it should all be the same, so [[....]] it is. Also cleaned up some other cruft and reorganized code 
slightly.
2008-11-06 19:43:28 +00:00
inxi-svn 1169e86347 Cleaned up more awk one liner flow controls, removed ; and added new lines, please check to make sure I didn't mess up! 2008-11-05 23:54:14 +00:00
inxi-svn 32a9957109 some more awk cleanup 2008-11-05 23:39:07 +00:00
inxi-svn b5bffea71f added @ to cpu ban list 2008-11-05 23:18:26 +00:00
inxi-svn c21dfba13d improved extra whitespace handling in cpu model filters, now all > 1 whitespace becomes a single ' ' 2008-11-05 23:15:09 +00:00
inxi-svn 90779b6369 cleanup of hanging and loose variables 2008-11-05 22:48:56 +00:00
inxi-svn fbff2fbed9 new option, show full flags (-f), created a few new functions to split the flag handling, for get and print. This removes
that junk from the old get cpu data and makes it cleaner.
2008-11-05 22:23:53 +00:00
inxi-svn f57394e296 Just some small cleanups and code fixes 2008-11-05 06:16:33 +00:00
inxi-svn a88d133b72 Try to fix L2 misreporting issue for intel core duo 2008-11-05 02:32:53 +00:00
inxi-svn 99509242d1 Improved audio device detection with new string 2008-11-05 02:05:26 +00:00
inxi-svn 582c6eecac Updated get_cpu_core_count to return an array of data like other functions, this helps make methods more consistent over
all get data functions
2008-11-04 22:08:46 +00:00
inxi-svn b11b8228c5 update text tweak 2008-11-04 20:09:09 +00:00
inxi-svn 28fd5c648a tweak 2008-11-04 20:07:11 +00:00
inxi-svn 0d4ead5b0a text tweak 2008-11-04 20:05:46 +00:00
inxi-svn c44c7d263c Small tweak to update message, makes it more readable 2008-11-04 20:04:51 +00:00
inxi-svn 54a94c2821 Added -v6 option, show audio / sound card data. Cleaned up last chunks of crufty code and variable names, found a few
hidden non handled old style variables and structures.

Less junk in there now, but still a few spots where things need polishing.
2008-11-04 20:02:05 +00:00
inxi-svn a70dedfa4b cleanup 2008-11-04 05:39:26 +00:00
inxi-svn c4fb305550 for ps3, dumped cpu .000000 mhz and made it .000 2008-11-04 05:00:55 +00:00
inxi-svn a3ceadd2e7 tweaking and testing how awk handles this, cleared out MHZ from cell cpu speed 2008-11-04 04:54:49 +00:00
inxi-svn 64a9f179e6 tweaked some output for awk cpu detections for cell 2008-11-04 04:45:02 +00:00
inxi-svn 8ca79e2118 Some tweaks and tests with awk, seem to work 2008-11-04 04:16:24 +00:00
inxi-svn bacb436798 another cell try 2008-11-04 04:10:03 +00:00
inxi-svn 1871cef434 fixed cpu count backup test 2008-11-04 04:02:59 +00:00
inxi-svn 6037e4002f trying to get ps3 to show some basic output 2008-11-04 04:01:02 +00:00
inxi-svn 37a0e55b57 added error condition to number calculator 2008-11-04 03:13:01 +00:00