Got a good rough working alsa driver going. This only works for one card, dual or more cards will simply
not show the driver field, but everyone with just one card will be able to see their running driver.
This is an ok compromise for now, but it wasn't super elegant.
This is as close as I can get to getting the alsa driver to show, but it only works if
lspci for audio comes up blank, that way we can use /proc/asound/cards for all the data
and extract the card and driver from that into an array.
But I can't see any way to match the full output of lspci if present with the card data
from /proc/asound/cards, because sometimes there is nothing in common between the two.
Maybe someone else can solve this one...
Fixed extra data issue on alsa output, now etch on old laptop is also showing sound card by the way.
Removing (...date build...) string from alsa output if present, and removing trailing dot.
Added new distro maintainer flag: B_ALLOW_UPDATE='true' as default. If set to false, it will shut off
the inxi script updating feature, and also turn off the display in -h of the -U option.
This seems a lot easier than having to remove code each release, which would get fairly tiresome.
Refactored script self updater error handling, removed duplicates and created single test cases.
Ok, enough is enough... heh, signing off now... enjoy, thanks to Cathbard for his patience, and
and all the other people supporting this with their time.
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
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.
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 ;-)
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
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.
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.
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.
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.
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.