Linux/sysctl

/etc/sysctl.conf
/etc/sysctl.d/*.conf

sysctl -p [file] # read and apply from file, which defaults to /etc/sysctl.conf
sysctl --system # read and apply from /etc/sysctl.conf and /etc/sysctl.d/*.conf

OpenWrt 的 busybox 的 sysctl 不支持 --system, 是启动时通过脚本遍历 /etc/sysctl.d 里所有文件并用 sysctl -p 加载的。


Last update: 2020-06-18 01:10:37 UTC