From 6285339a7a40da441cef2114e4cb1197d42a925a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 20 Sep 2014 11:02:50 +0200 Subject: core-services/08-sysctl.sh: make this work with busybox sysctl. --- core-services/08-sysctl.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core-services/08-sysctl.sh') diff --git a/core-services/08-sysctl.sh b/core-services/08-sysctl.sh index 6616784..30d5c39 100644 --- a/core-services/08-sysctl.sh +++ b/core-services/08-sysctl.sh @@ -2,5 +2,10 @@ if [ -x /sbin/sysctl ]; then msg "Loading sysctl(8) settings...\n" - sysctl --system + for d in /etc/sysctl.d /usr/lib/sysctl.d; do + [ ! -d $d ] && continue + for x in $d/*.conf; do + sysctl -p $x + done + done fi -- cgit 1.4.1