From 4c4288728611d334efb777b74e737e1f98e0dc1b Mon Sep 17 00:00:00 2001 From: Luiz Angelo Daros de Luca Date: Tue, 17 Jul 2018 19:41:09 -0300 Subject: [PATCH] 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 --- package/base-files/Makefile | 2 +- package/base-files/files/etc/init.d/sysctl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/base-files/Makefile b/package/base-files/Makefile index ca1cb47a6c..8775ffbc80 100644 --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk include $(INCLUDE_DIR)/feeds.mk PKG_NAME:=base-files -PKG_RELEASE:=192 +PKG_RELEASE:=193 PKG_FLAGS:=nonshared PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/ 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 } -- 2.25.1