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:20:07 +0200 |
commit | a297324a135a699eb872e37461fad34a09281122 (patch) | |
tree | 4c0afe396a3805c58111bee6a941e7b99f5314b9 | |
parent | 1e48546a6ad12d7287acf2a685fc78cee96dc6e6 (diff) | |
download | mtk-20170518-a297324a135a699eb872e37461fad34a09281122.zip mtk-20170518-a297324a135a699eb872e37461fad34a09281122.tar.gz mtk-20170518-a297324a135a699eb872e37461fad34a09281122.tar.bz2 |
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>
-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 a236a01..4db5644 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 } |