2
0
forked from Ivasoft/openwrt

sysctl: read settings from /etc/sysctl.d/*.conf

This changes makes it possible to store custom settings
in individual files inside the directory /etc/sysctl.d/.

Signed-off-by: Stefan Tomanek <stefan.tomanek+openwrt@wertarbyte.de>

SVN-Revision: 46239
This commit is contained in:
John Crispin
2015-07-07 13:47:23 +00:00
parent 0e2d9769be
commit 3787c32183
4 changed files with 12 additions and 4 deletions

View File

@@ -3,5 +3,7 @@
START=11
start() {
[ -f /etc/sysctl.conf ] && sysctl -p -e >&-
for CONF in /etc/sysctl.conf /etc/sysctl.d/*.conf; do
[ -f "$CONF" ] && sysctl -p "$CONF" -e >&-
done
}