Commit graph

1725 commits

Author SHA1 Message Date
inxi-svn c247bde8dd (Change Version)
More future proofing, updated -! conditions to use more reasonable numbers:
1,2,3 -! are now setting testing booleans
10,11,12,http://.... now set alt downloads
2008-11-13 02:45:35 +00:00
inxi-svn fbffdcd27d (No Version Change)
Changed B_TESTING_FLAG to B_TESTING_1 to cover future cases where we run multiple testing option
flags. These last changes are all for future development, none are related to currently active stuff.
2008-11-13 02:40:01 +00:00
inxi-svn 0b75156ce9 (No Version Change)
Added -! comments in header to explain two new -! options for branch downloads.
2008-11-13 02:36:26 +00:00
inxi-svn 9fa3ab4edb (no version change)
fixed typo
2008-11-13 02:28:42 +00:00
inxi-svn 3aa1ebfee1 (no version change)
Fixed redundant error inxi word, added error number to output, this should have been done long ago.
2008-11-13 02:20:20 +00:00
inxi-svn 30f749bc6d (Change Version)
Cleaned up and refactored download error handling, put it all in download function, out
of get_params, which should only set params, not execute special case code blocks. Sorry cathbard ;-)
2008-11-13 02:18:33 +00:00
inxi-svn c848609967 (change version)
Fine tuned the branch download option error messages to better reflect the actual error.
2008-11-13 02:12:08 +00:00
inxi-svn ccd62be018 (Change Version)
Improved bad download error handler message and options.
2008-11-13 02:03:04 +00:00
inxi-svn 6960738965 (change version)
Added two new testing options, svn branch one and branch two download run from urls.

Both are triggered by -!, -! 3 for testing branch/one and -! 4 for testing branch/two
2008-11-13 01:57:45 +00:00
inxi-svn cc5fb242c4 (No Version Change)
Just some comment cleanups and small code cleanups.
2008-11-12 19:21:24 +00:00
inxi-svn 8978b3e48b (No version change)
Changed order in help menu, made D alphabetical, I missed that one...
2008-11-12 03:59:16 +00:00
inxi-svn 3688020946 (Change Version)
Fixed a fairly major bug with both short output handling and debugging output
in get_parameters.

Prevented proper handling of non line/F/d/v type options and short output.

Update scripts to this version, and hopefully that will be it for now.
2008-11-12 01:39:27 +00:00
inxi-svn be6d736498 (no version change)
comments tweak
2008-11-11 23:45:59 +00:00
inxi-svn 1404ceca7d (No version change)
and added -q to testing wget as well...
2008-11-11 23:42:51 +00:00
inxi-svn 0ad0f3197b (No version change)
Added item to -v5 help menu.
2008-11-11 23:41:46 +00:00
inxi-svn 88ca162533 (No version change)
More cleanup of comments
2008-11-11 23:38:07 +00:00
inxi-svn 4b540d3c9b (no Version Change)
typo.
2008-11-11 23:37:20 +00:00
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