Support /etc/sysctl.d
When searching for sysctl settings to reapply at start/restart, search in all files in /etc/sysctl.d/ instead of just in /etc/sysctl.conf.
This commit is contained in:
parent
948527f3fe
commit
85aff8c513
@ -150,7 +150,7 @@ load_sysctl() {
|
||||
echo -n $"Loading sysctl settings: "
|
||||
ret=0
|
||||
for item in $IPTABLES_SYSCTL_LOAD_LIST; do
|
||||
fgrep $item /etc/sysctl.conf | sysctl -p - >/dev/null
|
||||
fgrep -hs $item /etc/sysctl.d/* | sysctl -p - >/dev/null
|
||||
let ret+=$?;
|
||||
done
|
||||
[ $ret -eq 0 ] && success || failure
|
||||
|
Loading…
Reference in New Issue
Block a user