diff options
author | William Hubbs <williamh@gentoo.org> | 2012-03-24 15:00:24 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2012-03-24 15:00:24 -0500 |
commit | 6ac182c9cab4bde83767ea82ba2013cf126d55de (patch) | |
tree | f7d6700ca52d01bbb182d9fa7cbf95c4364e560b /init.d | |
parent | 09327f429fa8865c5a029dd4e9b029f5db1534e7 (diff) |
sysctl: use @SYSCONFDIR@ in the scripts instead of hard coding /etc
Diffstat (limited to 'init.d')
-rw-r--r-- | init.d/sysctl.BSD.in | 2 | ||||
-rw-r--r-- | init.d/sysctl.Linux.in | 2 |
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 |