mirror of https://github.com/hak5/openwrt.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 <luizluca@gmail.com>openwrt-19.07
parent
290c54473e
commit
4c42887286
|
@ -12,7 +12,7 @@ include $(INCLUDE_DIR)/version.mk
|
||||||
include $(INCLUDE_DIR)/feeds.mk
|
include $(INCLUDE_DIR)/feeds.mk
|
||||||
|
|
||||||
PKG_NAME:=base-files
|
PKG_NAME:=base-files
|
||||||
PKG_RELEASE:=192
|
PKG_RELEASE:=193
|
||||||
PKG_FLAGS:=nonshared
|
PKG_FLAGS:=nonshared
|
||||||
|
|
||||||
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
PKG_FILE_DEPENDS:=$(PLATFORM_DIR)/ $(GENERIC_PLATFORM_DIR)/base-files/
|
||||||
|
|
|
@ -39,6 +39,6 @@ apply_defaults() {
|
||||||
start() {
|
start() {
|
||||||
apply_defaults
|
apply_defaults
|
||||||
for CONF in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
|
for CONF in /etc/sysctl.d/*.conf /etc/sysctl.conf; do
|
||||||
[ -f "$CONF" ] && sysctl -p "$CONF" -e >&-
|
[ -f "$CONF" ] && sysctl -e -p "$CONF" >&-
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue