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-18.06
parent
1e48546a6a
commit
a297324a13
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue