hello,
is it possible to map nvram variable in /proc ?
I need this to avoid forking (or exec) in web server interface writen in php. Fork consume mush time,
reading a file may be very very lighter. Also we could create php interface to nvram. But with
/proc, reading could be possible with php, perl and any scripting languages.
An other way to do this should be to read raw nvram memory if it available. In Web interface
we make many read, and only free write (updates). So we could make read read, and update
securely with standard nvram command.
Here is what we could se for nvram in /proc :
cd /proc/nvram ; ls
-> should display all nvram variables,
cat /proc/nvram/boot_wait
-> display boot_wait status
echo 1 > /proc/nvram/boot_wait
-> set boot_wait to 1
rm /proc/nram/boot_wait
-> unset boot_wait value (not a good idea ...)
echo 1 > /proc/nvram/commit
-> commit nvram values. (may be an other way ?)