Commit graph

105 commits

Author SHA1 Message Date
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
inxi-svn
a707cea2dc Added new verbosity level, 5. Allows for printout of clockspeed per cpu on new line if cpu count > 1 2008-10-31 21:12:23 +00:00
inxi-svn
3912580aad lots of cleanup, refactored more 2008-10-31 20:20:44 +00:00
inxi-svn
cc48099a2a added spacer to null hdd case 2008-10-31 07:24:44 +00:00
inxi-svn
84feed2d45 added some hdd output tweaks 2008-10-31 07:21:57 +00:00
inxi-svn
312a53e3b9 Added (x) numbering for each hard drive listed in > 1 verbosity levels, this is a nice improvement in readability 2008-10-31 07:13:26 +00:00
inxi-svn
6ff09a06d5 forgot spacer 2008-10-31 06:45:21 +00:00
inxi-svn
b5416695eb small output fix for networking card, single card case 2008-10-31 06:44:25 +00:00
inxi-svn
b1e4762e7d More small tweaks to things 2008-10-31 04:31:56 +00:00
inxi-svn
8f29c790ad help menu output tweak 2008-10-31 04:27:00 +00:00
inxi-svn
eb893cce4b Updated -V/--version information to better reflect inxi status, cleaned up a few little glitches. 2008-10-31 04:24:09 +00:00
inxi-svn
6253441bc3 Fixed special requirement for antiX id, hopefully distros won't do this type of random file generation and content, a
single string in the distro id is what they should have, ie: sidux-version, debian_version, not multiple lines
2008-10-31 03:07:52 +00:00
inxi-svn
14c7150e77 found weird issue, infobash was depending on variables NOT being correctly declared for some output stuff. This will need
to be fixed for real, for now just didn't declare HDD_MODEL. This type of stuff is why this script needs to be 
rewritten...
2008-10-31 02:31:30 +00:00
inxi-svn
06304336a2 Added null case handling for all hdd values, made hdd function local/global values cleaner 2008-10-31 02:21:01 +00:00
inxi-svn
27a128f93c For video, added null case in video card detection 2008-10-31 02:00:02 +00:00
inxi-svn
1dd41e1d02 uptime made it space, otherwise it looks silly 2008-10-31 01:36:38 +00:00
inxi-svn
b6eb285cf9 tweaked uptime output, added dash, removed space 2008-10-31 01:34:51 +00:00
inxi-svn
e8cceeb024 tweaked to add tri core, quad core to ban list 2008-10-31 01:27:53 +00:00
inxi-svn
b05fe16a35 modified cpu bans, now it's a string 'dual core', not core, because coreduo gets broken 2008-10-31 01:25:20 +00:00
inxi-svn
f245bbc521 Cleaned up comments, made more consistent and easy to read, added some comments 2008-10-30 22:34:23 +00:00
inxi-svn
1511341393 Updated version number 2008-10-30 22:24:40 +00:00
inxi-svn
ae63e9973b Adding version number output for updating feature 2008-10-30 22:22:59 +00:00
inxi-svn
c63f96f40e Added hack to get distro for arch, which has a bug about empty /etc/arch-release and jumbled /etc/issue 2008-10-30 22:04:26 +00:00
inxi-svn
696ee1b3e7 Added 'genuine' to cpu ban word list 2008-10-30 21:46:04 +00:00
inxi-svn
13a9fba961 Improved -U error handler, added advice to output if wget fails. 2008-10-30 21:28:50 +00:00
inxi-svn
c4764550e4 Updated version number 2008-10-30 21:23:50 +00:00
inxi-svn
1e6b18bcbd More refactoring, made short output use the new cpu_core_count function, got rid of CPU2 stuff, commented out chunks of
now unneeded get cpu data stuff

More clean up, tightened up print functions, added some more locals in main print function for child data, removed 
corresponding globals.
2008-10-30 21:23:29 +00:00
inxi-svn
1dd8fc0354 Added trash80 cpu count function, removed redundant multicore lines since all always have same clockspeed etc
Major cleanup and refactoring of get gfx functions, cleanup of most print functions, consolidation and removal of 
unnecessary globals.
2008-10-30 20:32:53 +00:00
inxi-svn
b06b4a07c7 Changed all cases of:
if [ .....]
then
or
elif [....]
then

to use the hanging then turd method:
if [....];then

This will be the standard style for inxi

All other flow controls will be on their own lines, ie:
do
done
{
}
2008-10-30 17:18:02 +00:00
inxi-svn
7085e1d702 fixed hdd used spacing, made script name / v number have right color scheme too 2008-10-30 07:48:20 +00:00
inxi-svn
0252ad7ade added gmbh to ban list 2008-10-30 07:43:21 +00:00
inxi-svn
d2f36ba0e0 fixed ordering of multicard assembler for print 2008-10-30 07:28:43 +00:00
inxi-svn
19ad149b28 Fixed messup with gfx arrays, mixed up glx and gfx 2008-10-30 07:23:45 +00:00