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:
github.com
I am guessing your could use a sysctl value as user shell variable?
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:
freebsd-device-drivers/ch03/pointless/pointless.c at master · ricardobranco777/freebsd-device-drivers
Code from the book "FreeBSD Device Drivers: A Guide for the Intrepid" - ricardobranco777/freebsd-device-drivers
I am guessing your could use a sysctl value as user shell variable?