sysctl: hard code paths for sysctl files on *bsd

For *BSD,the sysctl*.conf files are always in /etc.
This commit is contained in:
William Hubbs 2017-12-14 13:52:55 -06:00
parent bb1bc6eeb7
commit d5f3fe52c8

View File

@ -21,7 +21,7 @@ BSD_sysctl()
[ -e /etc/sysctl.conf ] || return 0
local retval=0 var= comments= conf=
eindent
for conf in @SYSCONFDIR@/sysctl.conf @SYSCONFDIR@/sysctl.d/*.conf; do
for conf in /etc/sysctl.conf /etc/sysctl.d/*.conf; do
if [ -r "$conf" ]; then
vebegin "applying $conf"
while read var comments; do