]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Change SYSCONFDIR to /etc/dhcpcd as we'll probably be adding some kind of config...
authorRoy Marples <roy@marples.name>
Wed, 16 Apr 2008 18:19:50 +0000 (18:19 +0000)
committerRoy Marples <roy@marples.name>
Wed, 16 Apr 2008 18:19:50 +0000 (18:19 +0000)
Makefile
dhcpcd.sh.in

index a919890aaa176a0e0028b29d2d2fc2d734915d7b..c9db0cc187ac7f25799c9de9c413d66bfb9d2da5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ VERSION=      4.0.0-alpha1
 CLEANFILES=    dhcpcd.sh dhcpcd.8
 
 BINDIR=                ${PREFIX}/sbin
-SYSCONFDIR?=   ${PREFIX}/etc
+SYSCONFDIR?=   ${PREFIX}/etc/${PROG}
 
 .SUFFIXES:     .in .sh.in
 
index 2297ad9524e0e86c379b0a6dc3043d48b03c48ef..f97a870053bed5d5cc335742c8ed168b15b5ca0b 100644 (file)
@@ -40,7 +40,7 @@
 do_hooks()
 {
        local x= r=0
-       for x in @SYSCONFDIR@/dhcpcd-"$1"-hook.d/* @SYSCONFDIR@/dhcpcd-"$1"-hook; do
+       for x in @SYSCONFDIR@/"$1"-hook.d/* @SYSCONFDIR@/"$1"-hook; do
                if [ -e "${x}" ]; then
                        . "${x}"
                        r=$((${r} + $?))