Commit graph

1258 commits

Author SHA1 Message Date
inxi-svn c9b53cdbcd bsd bash doesn't like the *"value"* bash test, so had to remove it. 2014-03-17 04:13:32 +00:00
inxi-svn 8d6b87f9d8 some bug fixes, bsd fixes; set gpu default for out of x temps, guessing there at :0.0 screen; changed to if type -p program &>/dev/null;then
instead  of $(type -p program) subshell.

I'll see if getting rid of as many subshells as possible has much impact on performance, certainly makes the code ugly but maybe it's worth it.

No version change.
2014-03-17 04:07:31 +00:00
inxi-svn 21a520950e New version. Big set of changes: changed all ver: and version: to v:; changed all bash
${var} to $var where appropriate to avoid extra overhead of ${..}; removed 'basename'
and replaced with ${path##*/} which avoids unnessary subshells.

Fixed dynamic line wraps on -I and -S lines, now those in most cases will work well 
down to 80 cols. 

Fixed bug in optical drives, at some point in the last few years, the kernel in /sys
changed the path to the optical drive data, added in /ata8/ (example) so both methods
are now handled. This should fix a lot of failures to show optical drive brand name etc.

Added weechat detection, trying also supybot/limnoria detection in irc client version.
There was weechat-curses, but I guess they finally dropped the -curses. Limnoria is
a fork of supybot but still uses the supybot program name, but added in limnoria too
if they get around to changing that.

More dynamic sizing tweaks, more optimization of code. Discovered that dipping into gawk
is almost 250x more expensive in terms of execution time than using bash variable. 
Will change to use bash directly as time goes along where it's safe and accurate.

Added handling to support /run paths using directories, like /run/gdm/gdm.pid for dm data.
2014-03-16 22:55:01 +00:00
inxi-svn 40053aa5b7 no version change, just added wrapper around tput cols so only use it if in terminal 2014-03-15 17:56:51 +00:00
inxi-svn c8b6706bc5 changed to use bash variable stuff instead of subshell, no functional change,
but the bash variable manipulation seems to be a bit, quite a bit in some cases, more 
efficient than subshells, so I'll remove as many subshells as makes sense over time.

Only dumping the wc -c subshells from the help print loops increased speed of that by
about 300% or so, literally.
2014-03-15 04:28:02 +00:00
inxi-svn 94359c91c1 bug fix, forgot to add in a flag every loop 2014-03-15 04:00:30 +00:00
inxi-svn 0c7d9ebc10 New version. Updated dynamic sizing, fixed some glitches in cpu flags, fixed bugs in
cpu main. Cleaned up a few more variable and width issues. Used a few more ${#var} for
counting.
2014-03-15 03:41:16 +00:00
inxi-svn e8e3f9be84 New Version, new man. This continues the dyanamic line sizing, I'm doing these one at a
time to make it easier to test stuff one by one.

Full refactoring/reordering of top global variables, moved user/maintainer set variables
to top, and clearly identify all globals.

Changed LINE_MAX to COL_MAX but all user configuration files will stay working since
inxi now will check for that and translate them to the new variable names.

New lines fixed, -C cpu and -f cpu plus full flags. Flags output is now fully dynamic to
display screen in terminal/console. Moved cpu short flags to -x because it's not that
important in general and just clutters things  up in my opinion.

Print flags/bogomips on separate line if line greater than display width.

The rest of the lines will get a similar treatment, but it takes a bit of trial and error
for each line to get it working right.

Note that IRC line lengths are NOT dyanamic unless I can find a way to determine the column
width of irc clients, but that won't be accurate since fonts vary in widths for each character.

CPU was the worst offender in my opinion in terms of regular output wrapping to new line messily,
next will be the things with ports/chip id/card id.

Tightened up a bit more the dyanamic help / version output handler.
2014-03-14 20:21:10 +00:00
inxi-svn 77fe7b1855 more adjustments 2014-03-14 04:58:19 +00:00
inxi-svn 58eda26bff a few more fine tunings of help 2014-03-14 04:55:41 +00:00
inxi-svn c5ecc2b1d1 a few more tweaks on help 2014-03-14 04:51:43 +00:00
inxi-svn 1de9cdb49c a few more help menu tweaks to make things line up right. 2014-03-14 04:49:12 +00:00
inxi-svn e654fb42be fixed a small thing with -w/-W in help 2014-03-14 04:26:43 +00:00
inxi-svn 73272bb410 removed null default from init line 2014-03-14 03:13:42 +00:00
inxi-svn 2734a2746b some small indentation fixes 2014-03-14 02:51:56 +00:00
inxi-svn 6dfa2422ce bug fix, didn't strip out ^ properly 2014-03-14 02:39:27 +00:00
inxi-svn a2f1b02e53 New version, new man page. Finally, after all these years, dynamically resized to terminal
window column width help/version outputs. There is a significant slowdown to achieve this,
but I've optimized it as much as I could so it should be acceptable for most users now.
2014-03-14 02:28:40 +00:00
inxi-svn 8235cdd10f bug fix, parse error 2014-03-13 00:48:44 +00:00
inxi-svn 5ef2329092 small bug fix for arch linux, added fallback test for systemd version 2014-03-13 00:45:53 +00:00
inxi-svn e7ec0a9fea small change in upstart detection, picked a more robust method 2014-03-13 00:34:39 +00:00
inxi-svn aca844c7d8 New feature, not new line option though. Now shows init type with -x (also shows rc
type if openrc). -xx shows init / rc version number. Change runlevel to target if
systemd and if non numeric runlevel given. Should support systemd/upstart/epoch/runit
sysvinit. Supports openrc as extra data if it's present. Rearranged -I line a bit but
really just exchanged Runlevel: for Init: v: Runlevel: default:

This is the first step, some of the init system ID methods are weak and non robust
and this may need to be revised, but it should for now identify systemd/upstart quite
accurately, and in most cases sysvinit. Note that to get sysvinit version number requires
tool: strings which in debian/ubuntu is in package binutils. I don't know the package names
for arch/fedora/etc for the recommends check tool in inxi yet.

I believe this will be good enough for a first draft version, but over time we'll get it
more fine tuned, but as it is now, it should cover at least 99% of users, which isn't bad.
2014-03-13 00:18:26 +00:00
inxi-svn 70ddbfe37a bug fix in output 2014-03-03 23:38:39 +00:00
inxi-svn 4f954bdb70 forgot help menu update 2014-03-03 23:35:01 +00:00
inxi-svn af7336ceba New version; updated man page. Changed slightly the output for x server, in preparation
for adding alternate display servers, like Wayland or Mir. Rather than release all the
stuff at once I'm going to do it bit by bit. Currently I have not found a wayland iso
test cd that boots in virtual box so I will have to wait to really add support there.
2014-03-03 23:31:47 +00:00
inxi-svn 73101b5a9d added some debugger output 2014-01-14 23:07:22 +00:00
inxi-svn 82ca2008f7 changed UNITY to Unity, no version change, but new tarball. 2014-01-14 18:48:16 +00:00
inxi-svn 68ede84adc added in an xfce version fix for arch, user reports xfdesktop did not return a value, so we'll add a second test, xfce4-panel
--version and see if that works
2014-01-13 23:55:02 +00:00
inxi-svn 062f941199 small change, added N/A if no default runlevel is detected, that should help with debugging. 2014-01-13 23:44:05 +00:00
inxi-svn 5d35d02e07 bug fix, forgot to set upstart path 2014-01-13 23:17:26 +00:00
inxi-svn 3e55bb677c New version; new tarball; new man page. Added Unity desktop support; added -xx feature
to show default runlevel, using systemd/upstart/sysvinit type default tests.

Fixed gtk library version detections, now will support dpkg/pacman version tests, which
should give more data to more people than previously, where the old tests usually would
return null unless gtk dev packages were installed on the system.
2014-01-13 23:01:03 +00:00
inxi-svn 31ef4f7e05 added some debugging data, real version update will be later today. 2014-01-13 20:05:31 +00:00
inxi-svn ec7691fbc9 New version, new tarball. Fixed new gnome change, they, of course, removed gnome-about
and so version numbers failed. Now first trying gnome-session to get version number.

Also, there's a bug in at least gtk detection in opensuse, not sure what it is, they could
be using a different syntax for the test:
pkg-config --modversion gtk+-3.0

returns no such package on gnome 3.10 installs, but I have no idea what package name to
test for there in this case.

So leaving gtk version bugs unhandled due to no user information or feedback, if you want
it fixed or if it works for your distro, let me know and also if it does not work, tell
me the correct commmand, with its output, to get gtk version.

That's for inxi -Sx output that is.
2013-12-02 22:09:25 +00:00
inxi-svn 8d22723bfb trying a gnome version update 2013-12-02 21:44:30 +00:00
inxi-svn a32dcb803a Adding nvidia-smi debug data collectors for possible gpu / nvidia extra features.
No other changes, no change in version yet. This is only for inxi -U updates, developers ignore this for now.
2013-11-05 20:29:13 +00:00
inxi-svn 99f60b3485 changed date format, from month day year to 2013-10-15 type, no other changes. 2013-10-15 20:20:03 +00:00
inxi-svn 5692b62d14 small bug fix 2013-10-06 19:12:58 +00:00
inxi-svn 2bc7b45c45 small bug fix for urpmq parsing 2013-10-06 18:54:21 +00:00
inxi-svn 9dff36e58e New version, new tarball. Only for uprmq distros, small update to add support for another
repo type output, the initial listing was not complete of possible syntaxes. Now handles: 

Nonfree Updates (Local19) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/nonfree/updates

as well, apparently that is a possible output format in certain cases with urpmq.

Non urpmq distros ignore this update, there are no other actual changes.
2013-10-06 18:10:04 +00:00
inxi-svn 088a7812a1 New version, tarball. Added urpmq for -r.
Other distros than Mandriva, Mageia, no other changes so no need to update unless you want to.

This adds support for Mandriva, Mageia. urpmq parsing is similar but not identical to pisi.
2013-10-05 01:40:00 +00:00
inxi-svn 7b67885e42 This does not have a new version number (there is a new date), and is only for solusos,
so all other distro maintainer can ignore this update. New tarball. Adds support for
solusos-release distro file in /etc/.
2013-09-10 17:51:12 +00:00
inxi-svn 9e195afcc3 New version, new tarball. Fixed a bug / issue with failed usb nic detection, amazingly, the regex
in inxi failed to check for Ethernet.*Adapter, heh. Most usb nics are wifi, so I guess ethernet just
escaped me.
2013-08-20 19:28:02 +00:00
inxi-svn 316b13a070 small fix, replaced \s with [[:space:]] to be consistent 2013-08-12 23:30:26 +00:00
inxi-svn 6bf5746de2 New version, new tarball. Fixed a bug in Xorg where it shows drivers as unloaded when they
are actually loaded. Since we can't fix xorg, inxi will try to work around this bug by validating
one step further in the Xorg.0.log data, to confirm that drivers noted as loaded/unloaded/failed are 
actually running the display(s) of the system.

There is a possible case of error that might happen due to this change in the case of a system with
a complex xorg that uses two drivers/modules to run two different displays, ie, nvidia on one, and amd
on the other, for example, or intel/nvidia, etc. However, if that bug appears, we'll get that data set
of debugging output and fix it at that point. 

This fix repairs an existing xorg bug that is unlikely to get fixed any time soon (the call to load the
detected drivers, eg, vesa, intel, is repeated, causing a failure of driver already loaded on the second
occurance.
2013-08-12 23:25:45 +00:00
inxi-svn 90f4c78dd4 Tiny change, no new version, removed a stray 's' line 4306 that may have made certain distro
ids get slightly corrupted, but this is so trivial just fixing it, new tarball.
2013-07-13 18:49:23 +00:00
inxi-svn 191e560418 New version, new tarball. Two new desktop/window managers added: spectrwm (similar to scrotwm) and
herbstluftwm. Both tested and working, thanks anticap from Antix for doing the testing/issue report on this.
2013-07-01 22:15:51 +00:00
inxi-svn 8afddd9a29 New version, new tarball. The recent bug fixes reminded me to check for ARM working, that had some bugs too,
so I've updated that. -f for ARM now shows features instead of flags, and the -C regular cpu output does not
show cache/flags for arm cpus becuase they don't have those features.

Added some flags passed to various cpu functions and better detections of ARM cpu to handle dual core and other
issues that were not handled before as well, or at all.
2013-06-20 02:18:56 +00:00
inxi-svn 854f348969 New version, new tarball. Another stab at finally fixing the cpu / core count failures on fringe
cases. This required fixing some core logic assumptions that are not currently correct, particularly
on two cases, some xeon cpus fail to show core id for each core, showing 0 for all of them, second,
vm cpus do not show physical ids at all for at least intel, nor do they show core id. 

While we can't get HT totally reliable, particularly for vm xeon, since inxi has no way to know in
that case if a core is attached to a physical core or a virtual one, all of them being virtual in that
case, but still inxi is now reporting the correct number of cores, or threads in vm xeons, and is not
showing multicore cpus as single core, which was the main issue.

This required redoing the counter logic for the cpu/core/physical arrays, now they are set independently,
and can handle any of the others not being set, without creating an error or failure condition.

Also added in last check for a certain intel case where core id is 0 but > 1 physical cores exist, that
now also shows the correct cpu / core count.

While this is tested on many data sets of proc cpuinfo, it's still possible there is a fringe case I have
not seen that will trigger yet another unexpected behavior.
2013-06-20 00:29:19 +00:00
inxi-svn a1822fd07f new version, new tarball. Added support for openSUSE repo syntax/location, as long as it's
zypp or yum it will work. If it's both then it will show only one I believe, if that's a possible scenario, no idea.

Added one more fix for those pesky intel vm cpu core errors, now if /proc/cpuinfo shows no siblings at all,
and no core_id, but does have physical id, it will use the count for physical id as a default for core count.

Not perfect, but better than calling a dual core cpu a single core.

There's still a lot of mysteries with vm versions of kvm cpus, for example, if you see a dual core xeon, is
that actually one core with ht, or two cores? There is no way to find that information out that I can see that is
reliable.
2013-06-16 20:59:53 +00:00
inxi-svn 6888c8320d added a comment to clarify 2013-06-15 00:28:38 +00:00
inxi-svn 455394f2a8 no new version number, but a bug fix anyway, added in another vm disk drive fix.
Don't want to inflate inxi versions needlessly.
2013-06-15 00:16:32 +00:00
inxi-svn 7cc4628ab4 New version, new tarball. Some subtle bug fixes, a kvm virtual machine uses disk id in
/proc/partitions of 253, which made the disk totals fail to show up at all. Added that in.

Moved sourcing of configuration files to right after initialize_data so that some variables
can be forced to different values before the next set of system/app checks.

This is to allow specifically turning off, for some headless servers where $DISPLAY is not
null due to a bash configuration bug, these:
B_SHOW_X_DATA='false'
B_RUNNING_IN_X='false'

Setting those two to false in inxi.conf will turn off all the X checks etc even if the $DISPLAY
is set to non null.

Added in support for ksplice kernel version, requires installed uptrack-uname, if that is
present and if uptrack-name kernel version is different from uname then it will add (ksplice)
to kernel version string, and use ksplice kernel version. Also created a single function
get_kernel_version for use by short form/long form inxi output.

For intel xeon cpus, trying a work around for a bug in /proc/cpuinfo which fails to show core_id
or physical_id for cpus, using siblings / 2 for xeons with no actual core counts.

Fixed a bug that made fixes for multimounted partitions fail for disk used. Added in support
for also excluding single partitions mounted to different places.
2013-06-14 23:08:38 +00:00
inxi-svn 1bc928d497 fixed bad display in opensuse glx recommends, only fix for opensuse users unless you already packaged the last version, then you
should update because the output will be broken.
2013-05-30 21:38:59 +00:00
inxi-svn d5e792aca8 small change only for opensuse 12.3 in recommends, ignore this if you are not a package maintainer for opensuse 12.3. 2013-05-30 18:24:54 +00:00
inxi-svn c6905ed8e8 New tarball, version, man page. Improved remote weather, now it uses -W, and deprecated -! location=..
That was too hard to type and too hard to remember. Also do more dyanamic reordering of weather
output, depending on how much data is present, and how many x options are used.

Added error handling for generic deprecated options, and for options that do not have the correct
syntax for OPTARG, like with -W.

This should about do it for the weather option for now unless I missed something somewhere.
2013-05-26 03:19:38 +00:00
inxi-svn c27514aa58 tiny change, no version number change, new tarball: changed the second 'Weather:' in the first line to: Conditions: The redundancy
looked a bit odd, but for maintainers, it's not an issue, there will be an actual release later in a week or so with resorted weather 
data probably, we'll see.
2013-05-21 02:41:40 +00:00
inxi-svn 4c8d81372a small code adjustment 2013-05-20 03:09:45 +00:00
inxi-svn fd376c3009 new version, tarball. Bug fix, overly loose regex removed na from country/state/city strings,
like nashville.
2013-05-20 03:08:05 +00:00
inxi-svn 62b72f3472 small help bug fix, added in linebreak to help menu 2013-05-18 18:38:11 +00:00
inxi-svn 598fb932b2 New version, new tarball. Fixed some lintian issues in man page, changed man/help for
-! location= option, to indicate that users must replace space with + themselves.

Because of how bash handles these options, inxi cannot add in + signs itself automatically.

This should be closer to cleanup of this new feature.
2013-05-18 17:52:16 +00:00
inxi-svn 63ae1f9273 last typos and fixes, this should be it 2013-05-18 05:48:26 +00:00
inxi-svn 68ba60a3e7 changed help menu to reflect that you can only use asci letters in town/state field 2013-05-18 05:46:29 +00:00
inxi-svn 01fba3c64d new version, tarball. Fixed issue with spaces in names for cities/states/countries, added
man and help instructions to remove spaces and examples.
2013-05-18 05:37:29 +00:00
inxi-svn 5be282cea6 bug fix 2013-05-18 05:32:42 +00:00
inxi-svn a8c397a3cb fixed the glitch with two plus word city/country names, should work now 2013-05-18 05:28:30 +00:00
inxi-svn 7b312d6a42 new tarball, version, bug fixes on weather, also optimized speed for slow isps, and added
a global that can be set in user / system configs to make a longer wget time out. Default
is 8 seconds.

This should take care of the failure from slow load issue reported.
2013-05-18 05:14:27 +00:00
inxi-svn 5204b510aa patch version jump 2013-05-18 04:50:46 +00:00
inxi-svn 8794cf2f32 patch 2, trying to speed up for slow connection the weather tests 2013-05-18 04:49:36 +00:00
inxi-svn 421ecfd430 trying a patch fix for slow remote connections 2013-05-18 04:37:24 +00:00
inxi-svn eaed735103 bug fix, forgot to remove debugging flag 2013-05-18 04:13:09 +00:00
inxi-svn 76dc2733b8 new version, new tarball, bug fix for weather 2013-05-18 04:11:18 +00:00
inxi-svn dc2fd3aa53 new tarball, version. Bug fix on -! location=, forgot to have it pack its own location
array, that's now correct.
2013-05-18 03:27:05 +00:00
inxi-svn e5511af34b forgot one upper case 2013-05-18 02:27:00 +00:00
inxi-svn 601997fc59 uppercased the weather options 2013-05-18 02:25:50 +00:00
inxi-svn 65b18f4e0e forgot -z, note that it blocks location too 2013-05-18 02:13:13 +00:00
inxi-svn 5465241cfe New version, new tarball, new man page. Unless disabled by distribution maintainers, offers
weather -w option. With -x, -xx-, -xxx, shows more information. Basic line is just weather
and system time there. -x adds time zone, which is useful for servers, particurly web servers.
-x also adds wind speed. -xx adds humidity and barometric pressure. -xxx adds a possible new line, 
if data is available, heat index, wind chill, and dew point. 
-xxx also adds a line for location (blocked by irc/-z) / weather observation time.

-z filter applies as usual to location data, removes it in irc by default. -Z overrides override.

The api this uses is probably going to be dropped at some point, so this is just going to work 
while it works, then it will need to be updated at some point, so don't get very attached to it.

Also adds option to, with -w: -! location=<location string>
This lets users send an alternate location using either <city,state> or <postal code>
or <latitude,longitude> (commas for city,state and latitude,longitude are not optional, and the order
must be as listed.

If There is a developer flag if distro maintainers do not want this enabled, simply set:
B_ALLOW_WEATHER='false'
before packaging and the weather feature will be disabled.
2013-05-18 02:04:29 +00:00
inxi-svn 68677c9278 New version, new tarball. Made separators surround the partition id, that avoids any possible
errors with detections, also added in missing detection for separator.
2013-05-03 22:45:16 +00:00
inxi-svn 4af4fce377 New version, tarball. Fixed a small issue that would create a wrong reporting of disk
useage if bind mounts are used, ie, multiple binds to a single mount. Now inxi will
check a list of the previously used partitions before adding the size of the used space
to the total used, if the partition has already been used it will skip it. This was/is
a quick and dirty fix, but it's totally fine I believe and should resolve two separate 
issues:

1. use of bind mount method, where multiple partition names are bound to the same partition
2. accidental dual mounting to the same partition.

partitions section will still show the same data, ie, if bind is used, it will show all
the bind mounts even when they are attached/bound to a partition that is already listed.
This seems useful information, though maybe we can get the key word 'bind' in there somehow,
but for now I won't worry about that issue, that's just a nice to have, not a bug.
2013-05-03 20:57:40 +00:00
inxi-svn 43a2cbc589 New version, tarball. As always with fixes, one thing creates a bug in another. Fixed
linux driver version handling, now only trimming off number from bsd drivers.

Some linux drivers, like tg3 for broadcom ethernet, have numbers ending them. So this is
a bug fix for 1.8.44 release mainly.

Also includes openbsd initial fixes for some issues related to sysctl parsing for cpu and ram.
2013-03-02 17:54:48 +00:00
inxi-svn fd14505984 no version change, just added 'chipset' to banlist to filter out. 2013-03-01 06:15:15 +00:00
inxi-svn 7966cdeac9 New version, new tarball. This version brings the -A, -G, -N, -n, -i pci data
to bsd. Using a pciconf parser to do most of the heavy lifting in this one.

Two functions do the main pci card processing for audio, graphics, and networking.

All seems to be shipshape and working, tested on freebsd 7.3, 9.0, and 9.1 and 
the output is consistent.
2013-03-01 05:55:24 +00:00
inxi-svn 46e36c755b New version, new tarball. Improved B_ALLOW_UPDATES handling, now if set to false,
turns off all -h and -H menu options for updating. Also triggers an error message
if you use -U or -! <10-16/http://>.

Distro maintainers, take note, if you used the B_ALLOW_UPDATES flag, you no longer
need to change the code anywhere, the error messages and blocking the -h output for
update features is automatic as soon as the flag is set to 'false'.

I needed to change the -! handling because -! is now also being used for extra features 
like -! 31 and -! 32 and probably more stuff in the future, plus the -! 30 used by 
things like the inxi gui tool being worked on by trash80.

Also included in this version are more bsd changes, including initial function for pciconf
data parsing, this will be used for -A, -G, and -N options for card data.

Further bsd improvements are better error/no data available messages for -D and -o.
2013-02-28 23:35:53 +00:00
inxi-svn 48fa28f1ec New version, small bug fix, inxi failed to add in md raid partition size data to HDD used data.
The hdd used still fails to properly calculate the actual raid sizes but that's a bit too tricky
to do easily so will leave that for some other time.

Also added in more hdd used partition types for bsds, wd and ad type drivers for disks.
2013-02-28 07:15:13 +00:00
inxi-svn 9ccd707d49 small change, new tarball, added some excludes items to unmounted list, scd, dvdrw, cdrw. 2013-02-28 06:27:40 +00:00
inxi-svn 43fd70ca90 New version, updated man page. A bug fix for an old time bug: with mdraid, -o (unmounted
partitions) would show components of the md raid array as unmounted partitions.

This is of course incorrect, and is now fixed. 

Small update of man page as well to note that -o will not show components of mdraid arrays.
2013-02-28 06:12:04 +00:00
inxi-svn 20ca07336e updated bsd zfs raid error messages to reflect that only zfs is supported at this time 2013-02-27 22:08:35 +00:00
inxi-svn 2a93e5e522 New version, bug fix for mdraid, and cleaned up some errors and weak spots in component
output for mdraid. Certain conditions would trigger a false return for raid components, now
it shows more explicitly the online/spare/failed data so it's clear. Also shows 'none' for 
online if none are detected.
2013-02-27 22:02:44 +00:00
inxi-svn c4be977f5c bug fix 2013-02-27 21:16:20 +00:00
inxi-svn 85c4073d80 small bug fix, cleaned up for older bsds )) on their own line. 2013-02-27 20:57:24 +00:00
inxi-svn c66b0fa297 New version, updated man page. Completed zfs raid support for bsds, now include component
status as with mdraid, will show offline/failed devices as well in standard output.

Updated help and man page to reflect the difference between -R, -Rx, and -Rxx output for
zfs / mdraid.

No linux inxi changes, this should not alter any behaviors in -R for mdraid, if it does, it's 
a bug, please report it.
2013-02-27 20:45:26 +00:00
inxi-svn 48b8a5e6e9 New version, updated man page, new tarball.
Fixed partition bug that could falsely identify a remote filesystem like nfs as /dev fs

Added two options: 
-! 31 - Turns off Host section of System line. This is useful if you want to post output
from server without posting its name.
-! 32 - Turns on Host section if it has been disabled by user configuration file
B_SHOW_HOST='false'

Added missing CPU data message, fixed missing cpu cache/bogomips output, turned off
bogomips if null for bsd systems because bogomips is a linux kernel feature.

Added N/A for no memory report, this would mainly hit bsd systems where user has no
permissions to use sysctl or has no read rights for /var/run/dmesg.boot.

Many fixes for partitions, now for bsd, if available, uses gpart list to get uuid/label
Added support for raid file system syntax in bsd, now excludes main raid device name, 
and adds a flag to raiddevice/partitionname type so output can identify it as a raid
slice/partition.

In man page, added -! 31 / -! 32 sections, and some other small edits.

Added bsd raid line error message, added bsd sensors line error message.

Many other small bug fixes that should make linux more robust in terms of missing
data, and better/cleaner output for bsd.
2013-02-18 20:33:05 +00:00
inxi-svn a08712ce7d New tarball. Tiny fix for an obscure fringe case, leaving numbering as is.
In some cases, dmidecode returns the grammatically wrong message: 
'No smbios nor dmi data' instead of 'No smbios or dmi data', corrected the search
to look for simpler: 'no smbios ' to avoid that random error.
2013-02-12 17:57:17 +00:00
inxi-svn ba17e082c9 New version, new tarball. This update fixes a recent bug report with ancient dmidecode versions, that do not
properly support the -s option. Now -M uses only one method for dmidecode, manual construction of the Machine
data from the raw dmidecode file. The file output is also parsed a bit to make it more consistently reliable
for inxi purposes.

This update also includes all recent bsd branch updates, including the new #!/usr/bin/env bash on top which
lets inxi run in any environment without changes. Also for bsd, sets sed -i/sed -i '' global value, which 
means that now all the branches are the same, except the bsd branches will contain the most recent tests
and bsd handling. 

As each step is reached, I'll release a new inxi that should be stable, this is the first one however that
can be used as is, no changes, for bsd, debian kfreebsd, and linux systems.

Pleasen note that most bsd features are either incomplete or missing completely at this point, but it's a
start.

Some initial changes as well to help options to show more correct linux or bsd terms. These will be updated
as time permits, it is a long process.
2013-02-12 05:01:07 +00:00
inxi-svn 84bb021fe5 New version, new tarball. Cleaned up patch number sed cleanup that didn't work in bsd. 2013-02-09 04:52:57 +00:00
inxi-svn 90645ebe46 New version, new tarball. All bug fixes and cleanup preparing to support bsd systems, including
kfreebsd from Debian.

Cleaned up all sed and grep that will be used by bsds, added more granular flag for bsd types.

Cleaned up and corrected issues between bsd/linux, more escapes and tests added to drop error
counts in bsds. 

Please note that you must use the inxi from branches/bsd for true bsds because sed has extra -i ''
added, and has the proper #!/usr/local/bin/bash

Added -! 16 for gnubsd download/update, that's for gnu bsd systems like gnu/kfreebsd from debian.

That retains the top #!/bin/bash path, and also uses gnu sed so no -i '' syntax.

Moved some grep -o to gawk or sed to avoid using gnu grep unnecessarily, leaving gnu grep where
it will be linux only, for example parsing a /proc file.

Fixed tty irc bugs for bsds and linux, now should show the right console size for both, ideally.
2013-02-09 04:43:18 +00:00
inxi-svn 5b564bc84e New version, new tarball. Note, this is a refactor release only, and features the core bsd
support built in, although inxi will not run in bsd unless the top: #!/bin/bash is changed
to #!/usr/local/bin/bash

The actual bsd branch can be grabbed from: 
http://inxi.googlecode.com/svn/branches/bsd/inxi
then you can keep that version updated using: inxi -! 15 
which will grab the latest bsd version from the svn server.

This release also fixes a lot of small bugs that testing for bsd support exposed, but functionally
most people should see no difference, I just want to get this version up because there are
so many small changes that it's worth having a release.

I was going to have the fixed dmidecode for old systems in 1.8.35 but that will have to wait til
1.8.36

Linux users should see no real changes, except maybe a thing or two will work in certain circumstances 
when it didn't before, like showing MHz on ARM cpus on short inxi.
2013-02-08 04:06:54 +00:00
inxi-svn 5b86605d24 some code cleanup, new tarball, no other changes that matter 2013-01-29 00:40:35 +00:00
inxi-svn 2703defd0c forgot, was using awk, changed to gawk 2013-01-29 00:39:14 +00:00
inxi-svn 9515a5ab00 added a comment to explain the hack for su/process grandparent 2013-01-29 00:37:01 +00:00
inxi-svn 9ec6d89b08 quick bug fix, no version changes, handling su return value for shell parent, weird stuff.
Now will drill in until it hopefully gets su parent.
2013-01-29 00:30:34 +00:00
inxi-svn 84137bfac8 new version, new tarball, new man page.
small change -Ixx will show running in tty if it's not in X, with tty number.

sort of redundant to System: console: data, but that's ok, we'll live for now.
2013-01-29 00:22:50 +00:00
inxi-svn 4d59973cd1 New version, new tarball, new man page. Fixed an old bug where if you start inxi with
an ssh command sometimes it will not show any client information, just the debugger 
PPID output. Now it will test as a final check to see if it can detect any parent to
the process. Actually grandparent I believe. Seems to work, it's a fringe case but
why not handle it?

New -xx feature, for -I it will show, if inxi is not running in IRC client and if 
is running in X, and if the grandparent is not 'login', will show the application
the shell is running in.

Example: 
Info:      Processes: 271 Uptime: 5:36 Memory: 3255.8/4048.5MB Runlevel: 3 
           Gcc sys: 4.7.2 alt: 4.0/4.2/4.4/4.5/4.6 
                      Client: Shell (bash 4.2.37 - started in konsole) inxi: 1.8.33
2013-01-29 00:03:06 +00:00
inxi-svn fd8087040b New version, new tarball. Disabled -U in irc clients, with an exit error message. 2013-01-23 22:46:54 +00:00
inxi-svn 0b43930283 last fine tuning, now for specific irc support purposes, you can see what symbolic link started the real inxi 2013-01-23 22:41:07 +00:00
inxi-svn 66d7f02207 small bug fix with symbolic link path detection for --version 2013-01-23 22:35:10 +00:00
inxi-svn 9d0661b197 small glitch fix, very obscure case so checking --version path as symbolic link, use readlink if it is one. 2013-01-23 22:30:42 +00:00
inxi-svn b31926900b New version, new tarball. Fixed overly verbose output for --version/-V in irc. Also updated
and made cleaner the version data in verbose mode, non irc.

Fixed instance where program location would only show a dot . or relative path to inxi. Now
in version full will show the full path, or should.

Basic version line now show:  inxi 1.8.30-00 (January 22 2013)

The verbose information/version shows the license information, website/irc support info, and
a few other changes.

Also fixed a small bug where the copyright shows current year, not the actual year of the inxi
copyright contained in the top comment header.
2013-01-23 22:05:47 +00:00
inxi-svn 7705e68d40 New Version, new tarball. Added inxi.changelog to tarball as well.
Continuing fixes for ARM cpus, it was noted that short form inxi failed to show cpu speed
derived from bogomips. That's because of the old min/max output that short form used.
Updated that section to now use N/A as flag, and if N/A for min/max speed, use the speed
given from first cpu array index, the one derived from bogomips for ARM/razberry pi.

Note that there is still no other ARM /proc/cpuinfo available to see if the razberry pi
fixes work for all ARM cpus, but the fixes will stop hangs and endless loops at worst,
and may also show some type of cpu speeds for ARM cpus that are not in razpi devices.
2013-01-22 20:47:00 +00:00
inxi-svn 5b4e6a45e6 Bug fix, new version, new tarball.
quick work around fix for razberrie pi, get cpu data hung on arm /proc/cpuinfo because
it doesn't use the standard processor : [digit] format, but uses a string in the
processor : field, which then hangs inxi which was expecting an integer.

Corrected this with a work around, but it will require a lot more ARM /proc/cpuinfo samples
before the support for ARM can be considered stable.

For cpu speed, following wikipedia, used bogomips being equal to 1x cpu speed, to derive cpu speed.

Better than nothing I guess, but will be wrong in other cases, particularly with dual core arm.
2013-01-22 00:14:48 +00:00
inxi-svn 27dbddd581 small fix in variable declaration 2013-01-18 22:49:43 +00:00
inxi-svn 352cd1920d new version, fixed a long standing weakness, now the long -f full cpu flag output
sorts, that's much easier to read. I also made the line lengths on that much more accurate
to avoid a bunch of long flags creating a longer line, and made the first line shorter to handle
the line starter text.

New tarball as well, no man page changes.

Not sure why this was left undone for so long, but here it is, nice and neat.
2013-01-18 22:22:58 +00:00
inxi-svn 3f071d5849 trying to add -! 30 to trick inxi into thinking it is running in shell 2013-01-11 20:22:05 +00:00
inxi-svn 1688781f7f New version: desktop/dm added: WindowMaker, WM2. Also added in legacy wmii2 which may work.
windowmaker and wm2 are detected via xprop -root, there is no version information for wm2 available
so if you know how to detect that, let me know.

New tarball as well, though no man page changes.
2013-01-09 19:33:08 +00:00
inxi-svn 4e82d9b4d9 bug fix on disk size handling, some vm disk use the start number 252 in /proc/partitions, inxi failed to handle that, and so failed to
show proper disk size in virtual machine.

New tarball/version number.
2012-12-22 20:11:43 +00:00
inxi-svn f60b86253f fixed pardus/pisi sources collection to fit with new method, new tarball, no new version number 2012-12-22 04:39:52 +00:00
inxi-svn f2fbe65485 new tarball, new version. This fixes a somewhat obscure issue where for example rpmforge adds apt repos, and also I assume
some apt rpm tools might do the same for yum repos. Now inxi will simply note the presence of each type, for apt and yum.

I didnt' do this feature for pacman and pisi, because I've never heard of that, but if necessary, I'll add it.

Now inxi will hopefully correctly note the presence of the various repos and list the files with the repo type correctly
noted for each type.

I also fixed a bug in the yum/rpm type repo detection, inxi failed to properly handle spaces around the = sign, which made
it falsely identify as enabled disabled repos, it tested for only ^enabled=1 whereas also ^enabled = 1 is a possible syntax.

This is now corrected.
2012-12-22 04:01:02 +00:00
inxi-svn 2642ac39c7 more fine tuning of some gawk cleanup of os/lsb-release data, new tarball, no new version, this is more for future proofing at this point 2012-12-20 20:57:36 +00:00
inxi-svn 7f96ace5bf added some logging, again, nothing worth a version bump, but a new tarball anyway. 2012-12-20 20:29:02 +00:00
inxi-svn 54f23fb3e8 code cleanup on os-release/lsb-release, shouldn't make any difference for users, but there's a new tarball if you want to update the package. 2012-12-20 20:07:17 +00:00
inxi-svn b8382ecb68 fixed an old bug, sed -E is not supported in very old systems, and is actually not documented in man sed for GNU at all.
That's a bsd method, which slipped into inxi, I've replaced that with -r which is the correct syntax, and which will work
on old linux systems as well as new.

Since there is no functional change and only very old installs would ever see the difference, I'm leaving the version number
alone. New tarball as well.
2012-12-06 20:05:26 +00:00
inxi-svn 47d31be239 new version, fixed a weak shell handler, now it shows the actual shell that inxi started in if not irc.
Also added -x option, show shell version number as well. For dash/csh, this uses a hack of getting dpkg version,
which covers many users, but not all, hopefully I can find a universal way to get shell version for dash/csh
2012-12-05 21:34:56 +00:00
inxi-svn d14d9b7a23 new version, new tarball, a long time oversight, now if running in shell, shows the shell type, like bash, zsh, etc
instead of just the plain 'shell'.
2012-11-20 05:00:15 +00:00
inxi-svn b668b4c4f3 ok, last fix, made pattern looser, now () around x86_64, i686, etc, are optional in search.
Last, I think, tarball, and this is it.
2012-11-17 23:26:06 +00:00
inxi-svn d519d13c02 new tarball, last patch, now globally strip out (x86_64/i686 type data too 2012-11-17 23:22:19 +00:00
inxi-svn ac174c5b94 fixed output a little, now strips out (686) and (x86_64) as well.
New tarball, no version number change since it's just a cosmetic change
2012-11-17 23:08:37 +00:00
inxi-svn c0f2247d7e patched/debugged version of 1.8.22, this is the real version, with new tarball.
Includes all fixes from last svn commit, plus the bug fix.

Now properly handles opensuse/suse distro id wether it has os-release or not.
2012-11-17 22:54:07 +00:00
inxi-svn 269b4cc828 removed debugger 2012-11-17 22:50:32 +00:00
inxi-svn f8dd3b9b1d bug fix, wait for 1.8.22 until verified 2012-11-17 22:49:30 +00:00
inxi-svn 4e030ed5ea undid numbering, sigh 2012-11-17 22:38:57 +00:00
inxi-svn bbf0f29ca3 new version 1.8.22, fixed an old bug with opensuse/suse detection, now sets to default to os-release parser, and a corrected basic
fallback for only /etc/SuSE-release present, presents only first line of that file.

Also improved the /etc/os-release handler to include more data if the PRETTY_NAME field is blank.

New tarball as well.
2012-11-17 22:32:32 +00:00
inxi-svn 2c5b161c2f first patch attempt for inxi suse id, that uses os-release by default now 2012-11-17 21:48:36 +00:00
inxi-svn dc812f80a3 Version update.
Hexchat bug fix/workaround, worked around dev decision to start popping up a gtk dialogue when running
hexchat -v or --version command.

Now reads the actual user config files, hopefully anyway. Since trusting config files that are in the user 
~./hexchat directory for version information is quite unreliable, this is just a quick hack, but that's fine,
inxi is always happy to hack around bad developer ideas to provide the most accurate, or best guess, at the
answer.
2012-11-14 20:32:38 +00:00
inxi-svn 67ec681c24 Actual new version, support for -xx option for A, G, and N, outputs vendor:product string if found.
Updated --help, updated inxi.1.gz man file, updated inxi.tar.gz file.

I think that's it unless there's a bug fix.
2012-10-19 19:28:31 +00:00
inxi-svn 2ab831b0db tweaked A output a bit to make it cleaner on shorter lines 2012-10-19 18:51:02 +00:00
inxi-svn 6a4a15e6ee added A and G vendor:product output for xx, this also requires redoing the line length counters 2012-10-19 18:37:09 +00:00
inxi-svn 48bfe97c44 bug fix, advanced -n 2012-10-19 05:55:09 +00:00
inxi-svn 5abe728d51 another bug fix 2012-10-19 05:52:13 +00:00
inxi-svn 7c55077cf0 bug fix 2012-10-19 05:45:46 +00:00
inxi-svn b8e9e33348 patch update 2012-10-19 05:43:53 +00:00
inxi-svn f962121e5e bug fix 2012-10-19 05:43:37 +00:00
inxi-svn 839e844279 update patch number 2012-10-19 05:34:38 +00:00
inxi-svn 5c3b8443c6 updates 2012-10-19 05:33:30 +00:00
inxi-svn 194ee57cbc first test at adding vendor:product id for -xx 2012-10-19 05:10:56 +00:00
inxi-svn ea42c7495c bug fixes 2012-10-19 03:37:30 +00:00
inxi-svn 6658d489a2 output cleanup 2012-10-19 03:31:20 +00:00
inxi-svn 2afc2495f1 same error for usb audio, fixed that too 2012-10-19 03:27:55 +00:00
inxi-svn 2e71eaaf8d added more to the usb network bus id 2012-10-19 03:25:53 +00:00
inxi-svn 95888330fc fixed an old bug in networking, usb, that puts the vendor:product id instead of the bus id for usb, some other changes coming so no
version change yet.
2012-10-19 03:23:21 +00:00
inxi-svn 079944e590 one more distro id added to debugger collector, no need for new version 2012-10-04 02:34:10 +00:00
inxi-svn b9fdb8b36a added in fallback mode /etc/os-release for all distros, and as preferred mode for Arch, which
is I believe the only one that actually uses this at this point.

Preferred is lsb-release, because that tends to be more accurate.

Note, this may trigger arch derived distro errors, sigh...
2012-10-04 01:36:08 +00:00
inxi-svn bfce0a8fd7 added support for /dev/mapper partitions, those didn't show before, and triggered an error due to /
in path, ie, /dev/mapper/truecrypt1 for example.

Also fixed some subtle bugs that could in some instances trigger errors on partition label/uuid, not likely, but it could.
2012-10-03 20:53:13 +00:00