Rework sysctl writing to only write when needed.
This reworks the sysctl handling to only write a sysctl if it is not
already the desired value. In addition, the Linux sysctl knobs are now
stored in a lookup table which is looped through, to avoid code
duplication in the setup routine.
Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
Showing
Please register or sign in to comment