System wide variables across all users and all shells. How?

Well one year later and I am somewhat wiser.

My proposed method was on point. My implementation was not. This requires a custom Kernel Module to create the sysctl nodes.

Tonight I am re-reading James Kong book "FreeBSD Device Drivers" and page 41 systl's section in the beginning.
A code example of a Kernel Module for creating sysctls. Chose your data type. Integer or Character.

rbranco has the source code updated here:

I am guessing your could use a sysctl value as user shell variable?
 
Back
Top