From: Roy Marples Date: Wed, 16 Apr 2008 18:19:50 +0000 (+0000) Subject: Change SYSCONFDIR to /etc/dhcpcd as we'll probably be adding some kind of config... X-Git-Tag: v4.0.2~480 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6895fff31eea6a6069b8483f51030f88ff8d21be;p=thirdparty%2Fdhcpcd.git Change SYSCONFDIR to /etc/dhcpcd as we'll probably be adding some kind of config file. --- diff --git a/Makefile b/Makefile index a919890a..c9db0cc1 100644 --- 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 diff --git a/dhcpcd.sh.in b/dhcpcd.sh.in index 2297ad95..f97a8700 100644 --- a/dhcpcd.sh.in +++ b/dhcpcd.sh.in @@ -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} + $?))