package/busybox: add init script for sysctl
authorCarlos Santos <unixmania@gmail.com>
Wed, 1 May 2019 23:11:40 +0000 (20:11 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Sat, 3 Aug 2019 16:48:09 +0000 (18:48 +0200)
commit398c1af1d5cbad6cdcf0b2b965f27e86d1755420
treedec0b3a236f8fd25026998e021bd800ed4c1cad2
parentc3ebde5ced55bcd5feac0886f3f1e0f7f623a832
package/busybox: add init script for sysctl

Add a simple init script that invokes sysctl early in the initialization
process to configure kernel parameters. This is already performed by
systemd (systemd-sysctl) but there is no sysvinit/busybox counterpart.

Files are read from directories in the following list in the given order
from top to bottom:

    /run/sysctl.d/*.conf
    /etc/sysctl.d/*.conf
    /usr/local/lib/sysctl.d/*.conf
    /usr/lib/sysctl.d/*.conf
    /lib/sysctl.d/*.conf
    /etc/sysctl.conf

A file may be used more than once, since there can be multiple symlinks
to it. No attempt is made to prevent this.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
Reviewed-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/busybox/S02sysctl [new file with mode: 0644]
package/busybox/busybox.mk