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>
openwrt-18.06
Luiz Angelo Daros de Luca 2018-07-17 19:41:09 -03:00 committed by Mathias Kresin
parent 1e48546a6a
commit a297324a13
1 changed files with 1 additions and 1 deletions

View File

@ -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
}