mirror of
https://github.com/openwrt/openwrt.git
synced 2025-03-14 16:26:34 +00:00
In order to get the default value of the sysctl, a reboot must be done beforehand or it must be saved in the linux source code what the default value is. Reboot is not an option and the linux does not provide the feature to save the default values. To simplify this, all values of '/proc/sys' are saved on sysctl start with the 'sysctl' command into a temp file after the default values from OpenWrt are applied and before any changes are made by files that are locate in '/etc/sysctl.conf' and '/etc/sysctl.d/*'. Signed-off-by: Florian Eckert <fe@dev.tdt.de>