diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-04-12 17:33:51 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2018-04-13 10:16:45 +0200 |
commit | dbeb780ba423fc5aae66f503cf91b24a31db6d71 (patch) | |
tree | 73ab225b85bac7b5a7fcd26b194718639552ca94 /package/base-files/files/etc/init.d/sysctl | |
parent | 6c7307f133c2a60356b0de23aaaabe4ff7674d05 (diff) | |
download | upstream-dbeb780ba423fc5aae66f503cf91b24a31db6d71.tar.gz upstream-dbeb780ba423fc5aae66f503cf91b24a31db6d71.tar.bz2 upstream-dbeb780ba423fc5aae66f503cf91b24a31db6d71.zip |
base-files: evaluate /etc/sysctl.d/* before /etc/sysctl.conf
We can use /etc/sysctl.d/* for package-supplied sysctl snippets, giving
admins the option to use /etc/sysctl.conf to override settings.
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
Diffstat (limited to 'package/base-files/files/etc/init.d/sysctl')
-rwxr-xr-x | package/base-files/files/etc/init.d/sysctl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/package/base-files/files/etc/init.d/sysctl b/package/base-files/files/etc/init.d/sysctl index 65e6aa9925..8722126a66 100755 --- a/package/base-files/files/etc/init.d/sysctl +++ b/package/base-files/files/etc/init.d/sysctl @@ -30,7 +30,7 @@ apply_defaults() { start() { apply_defaults - for CONF in /etc/sysctl.conf /etc/sysctl.d/*.conf; do + for CONF in /etc/sysctl.d/*.conf /etc/sysctl.conf; do [ -f "$CONF" ] && sysctl -p "$CONF" -e >&- done } |