summary refs log tree commit diff
path: root/core-services/08-sysctl.sh
blob: 37d7b9fc33e7782750100f3ee715883188f33722 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# vim: set ts=4 sw=4 et:

if [ -x /sbin/sysctl -o -x /bin/sysctl ]; then
    msg "Loading sysctl(8) settings..."
    for i in /run/sysctl.d/*.conf \
        /etc/sysctl.d/*.conf \
        /usr/local/lib/sysctl.d/*.conf \
        /usr/lib/sysctl.d/*.conf \
        /etc/sysctl.conf; do

        if [ -e "$i" ]; then
            printf '* Applying %s ...\n' "$i"
            sysctl -p "$i"
        fi
    done
fi