diff options
author | Luiz Angelo Daros de Luca <luizluca@gmail.com> | 2018-07-17 19:41:09 -0300 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-07-18 19:17:46 +0200 |
commit | 4c4288728611d334efb777b74e737e1f98e0dc1b (patch) | |
tree | aab082065f0374ea0c1e1024656b8d6dc1cb2afa /package/base-files/files | |
parent | 290c54473eadf3ea3ddef81e051b436bcb09224f (diff) | |
download | upstream-4c4288728611d334efb777b74e737e1f98e0dc1b.tar.gz upstream-4c4288728611d334efb777b74e737e1f98e0dc1b.tar.bz2 upstream-4c4288728611d334efb777b74e737e1f98e0dc1b.zip |
base-files: fix wrong sysctl parameter order
Restarting service sysctl echos multiple errors like:
sysctl: -e: No such file or directory
After the first filename, all remaining arguments are treated
as files.
Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
Diffstat (limited to 'package/base-files/files')
-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 a236a0194b..4db56444c7 100755 --- a/package/base-files/files/etc/init.d/sysctl +++ b/package/base-files/files/etc/init.d/sysctl @@ -39,6 +39,6 @@ apply_defaults() { start() { apply_defaults for CONF in /etc/sysctl.d/*.conf /etc/sysctl.conf; do - [ -f "$CONF" ] && sysctl -p "$CONF" -e >&- + [ -f "$CONF" ] && sysctl -e -p "$CONF" >&- done } |