aboutsummaryrefslogtreecommitdiff
path: root/init.d
diff options
context:
space:
mode:
authorWilliam Hubbs <williamh@gentoo.org>2012-03-24 15:00:24 -0500
committerWilliam Hubbs <williamh@gentoo.org>2012-03-24 15:00:24 -0500
commit6ac182c9cab4bde83767ea82ba2013cf126d55de (patch)
treef7d6700ca52d01bbb182d9fa7cbf95c4364e560b /init.d
parent09327f429fa8865c5a029dd4e9b029f5db1534e7 (diff)
sysctl: use @SYSCONFDIR@ in the scripts instead of hard coding /etc
Diffstat (limited to 'init.d')
-rw-r--r--init.d/sysctl.BSD.in2
-rw-r--r--init.d/sysctl.Linux.in2
2 files changed, 2 insertions, 2 deletions
diff --git a/init.d/sysctl.BSD.in b/init.d/sysctl.BSD.in
index 2bfd0524..fe69ab2e 100644
--- a/init.d/sysctl.BSD.in
+++ b/init.d/sysctl.BSD.in
@@ -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
diff --git a/init.d/sysctl.Linux.in b/init.d/sysctl.Linux.in
index d202cb31..f4a06ff4 100644
--- a/init.d/sysctl.Linux.in
+++ b/init.d/sysctl.Linux.in
@@ -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