From: Marcin Krol Date: Tue, 21 May 2024 17:08:09 +0000 (+0200) Subject: - PLD merge: set sysctl setting using syctl --system option X-Git-Tag: 0.5.4~9 X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;ds=inline;h=9bd3fb3ab4feccd2936438b56b996dcd75e2e687;p=rc-scripts.git - PLD merge: set sysctl setting using syctl --system option --- diff --git a/lib/functions b/lib/functions index 6821022..25803f6 100644 --- a/lib/functions +++ b/lib/functions @@ -119,11 +119,7 @@ strstr() { # Apply sysctl settings, including files in /etc/sysctl.d apply_sysctl() { - local file - for file in /etc/sysctl.d/*.conf; do - test -f "$file" && sysctl -q -e -p "$file" - done - sysctl -q -e -p /etc/sysctl.conf + sysctl -q -e --system } if is_yes "$FASTRC" || is_yes "$IN_SHUTDOWN"; then