From: Luiz Angelo Daros de Luca Date: Tue, 17 Jul 2018 22:41:09 +0000 (-0300) Subject: base-files: fix wrong sysctl parameter order X-Git-Tag: v18.06.0~33 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=a297324a135a699eb872e37461fad34a09281122;p=oweals%2Fopenwrt.git 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 --- 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 }