Commit graph

1837 commits

Author SHA1 Message Date
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
inxi-svn 4ebea16e5f Changed partition data to work like other functions, create array of array data, then loop through it to print 2008-11-04 03:03:29 +00:00
inxi-svn 17c4e56151 Fixed card number bug in networking 2008-11-04 02:29:11 +00:00
inxi-svn dc00445017 Added both -V and -U update output that tells user where script is located in system 2008-11-04 02:16:50 +00:00
inxi-svn 567a20af28 Finally figured out how those weird pseud multilevel arrays work, tried it with networking, and it's working, I can get
output for each line as an array of an array, so I can print and handle output better now.
2008-11-04 02:14:12 +00:00
inxi-svn f68dc801d4 Fixed broken cache output, fixed bogomips output, created new cpu data function that takes core count and data number and
creates correct value for all cores total
2008-11-03 22:37:57 +00:00
inxi-svn 84beb29dcb Trying -x option for extra data output with bogomips, but note: bmips is I believe per core, so needs to actually be
calculated correctly, currently showing for only one core
2008-11-03 21:30:34 +00:00
inxi-svn d4ffef12c8 Some bash tweaks, tests on use of [ vs [[ brackets and arrays 2008-11-03 21:04:21 +00:00
inxi-svn 11b4075dbf Added proper antix-version handling to get distro name 2008-11-03 20:41:39 +00:00
inxi-svn 3dadd268e3 Fixed color in awk, using ENVIRON method 2008-11-02 20:57:56 +00:00
inxi-svn 51754db4ba Fine tuned hard disk partitions, put color values directly into the awk statement, that works fine if you use the correct
' and " sequences.

Cleaned up repeated Partition and replaced with single Partition: and subsequent ID: for each detected one
2008-11-02 20:46:25 +00:00
inxi-svn a197f7dd0b comments tweak 2008-11-01 23:29:22 +00:00
inxi-svn 50e0c9ec35 note about hwinfo as possible tool 2008-11-01 22:24:04 +00:00
inxi-svn 43bcdfc8a2 cleanup 2008-11-01 22:05:22 +00:00
inxi-svn e4cef81a8a Made -v3 show hard disk names, and -v2 networking information, this gives 3 an actual function, which it didn't have
before.

Updated help to show this.
2008-11-01 21:55:12 +00:00
inxi-svn 1347c67edf For usage, added verbosity level explanations, 0-5 currently. 2008-11-01 21:50:52 +00:00
inxi-svn e9a58b163c cleanup 2008-11-01 21:45:17 +00:00
inxi-svn 0007279526 A few more sloppy bug fixes 2008-11-01 21:34:07 +00:00
inxi-svn e956ee03f3 bug fix, changed $opt to $OPTARG 2008-11-01 21:30:53 +00:00
inxi-svn 7e4c53a7e5 Fixed bug, not null instead of null test,whoops 2008-11-01 21:28:38 +00:00
inxi-svn d379cb15c0 Redid get_parameters to use getops single letter method, this is cleaner and easier to maintain and test for.
Added options -c for color scheme, -d for default (same as previous -v1 or -v), -T testing, allows trigger of 
experimental new methods or outputs or functions.
2008-11-01 21:24:45 +00:00
inxi-svn 3366e34053 More comments added to clarify 2008-10-31 21:30:36 +00:00