]> TLD Linux GIT Repositories - rc-scripts.git/commitdiff
- PLD merge: set sysctl setting using syctl --system option
authorMarcin Krol <hawk@tld-linux.org>
Tue, 21 May 2024 17:08:09 +0000 (19:08 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 21 May 2024 17:08:09 +0000 (19:08 +0200)
lib/functions

index 682102201880e77143688e76525a20b29453c69b..25803f6557872a00e4f4d30de2f2228a28760150 100644 (file)
@@ -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