summaryrefslogtreecommitdiffstats
path: root/dhcpcd-run-hooks.in
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-07-12 17:14:45 +0000
committerRoy Marples <roy@marples.name>2008-07-12 17:14:45 +0000
commit9a7c3c8ed957d3e8ea4a6e92add49e21db0b003c (patch)
tree4df186c37f40bf03d9aed3218af39bc7ad9d4856 /dhcpcd-run-hooks.in
parent7e7d301b8f5d0f72f78790aabc2eb3325d88bfc9 (diff)
downloaddhcpcd-9a7c3c8ed957d3e8ea4a6e92add49e21db0b003c.tar.xz
Allow a user defined enter and exit hook instead of just a single hook.
Diffstat (limited to 'dhcpcd-run-hooks.in')
-rw-r--r--dhcpcd-run-hooks.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in
index 7fd8b091..bd7c64fa 100644
--- a/dhcpcd-run-hooks.in
+++ b/dhcpcd-run-hooks.in
@@ -22,8 +22,9 @@ restore_conf()
# Thus, the user can create their dhcpcd.hook script to configure
# /etc/resolv.conf how they want and stop the system scripts ever updating it.
for hook in \
- @SYSCONFDIR@/dhcpcd.hook \
+ @SYSCONFDIR@/dhcpcd.enter-hook \
@HOOKDIR@/*
+ @SYSCONFDIR@/dhcpcd.exit-hook \
do
for skip in ${skip_hooks}; do
case "${hook}" in