this is how you read/write files properly in a linux (or any unix e.g. bsd) userspace application:
mit licensed btw. i plan to make this its own library at some point.
have a nice day
and now that i got this out of my system, i have literally everything else other than editing nvmutil.c to do
browse.libreboot.org
nvmutil.c\nvmutil\util - lbmk.git - libreboot build system (LibreBoot MaKe)i plan to tidy this up and submit it to the bsd projects, for their libc implementations. i think this should be in libc
a few currently hardcoded checks could be removed, or made configurable, but i t's pretty much all there
it's an obsessively over-engineered implementation, to be sure. i can rest comfortable, knowing that my Intel GbE NVM configs will never be corrupted by this tool.
