sysctl: use @SYSCONFDIR@ in the scripts instead of hard coding /etc

This commit is contained in:
William Hubbs 2012-03-24 15:00:24 -05:00
parent 09327f429f
commit 6ac182c9ca
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ start()
local retval=0 var= comments= conf=
ebegin "Configuring kernel parameters"
eindent
for conf in /etc/sysctl.conf /etc/sysctl.d/*.conf; do
for conf in @SYSCONFDIR@/sysctl.conf @SYSCONFDIR@/sysctl.d/*.conf; do
if [ -r "$conf" ]; then
vebegin "applying $conf"
while read var comments; do

View File

@ -15,7 +15,7 @@ start()
ebegin "Configuring kernel parameters"
eindent
for conf in /etc/sysctl.conf /etc/sysctl.d/*.conf; do
for conf in @SYSCONFDIR@/sysctl.conf @SYSCONFDIR@/sysctl.d/*.conf; do
if [ -r "$conf" ]; then
vebegin "applying $conf"
if ! err=$(sysctl -p "$conf" 2>&1 >/dev/null) ; then