base-files: fix wrong sysctl parameter order
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Tue, 17 Jul 2018 22:41:09 +0000 (19:41 -0300)
committerMathias Kresin <dev@kresin.me>
Wed, 18 Jul 2018 17:17:46 +0000 (19:17 +0200)
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>
package/base-files/Makefile
package/base-files/files/etc/init.d/sysctl

index ca1cb47a6cc554c3292aef02f7f86a1c0432f0f7..8775ffbc80ec5833d6cad473ae21f10acaef90bd 100644 (file)
@@ -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/
index a236a0194b665ff56c8330930bfd44709d1b0d3d..4db56444c7c6e1ee9b6e92f8afab41b082799107 100755 (executable)
@@ -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
 }