.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd May 21, 2008
+.Dd Jul 12, 2008
.Dt DHCPCD.SH 8 SMM
.Sh NAME
.Nm dhcpcd-run-hooks
.Nm
is used by
.Xr dhcpcd 8
-to run any system or user defined hook scripts.
+to run any system and user defined hook scripts.
System hook scripts are found in
.Pa @HOOKDIR@
-and the user defined hook is
-.Pa @SYSCONFDIR@/dhcpcd.hook .
+and the user defined hooks are
+.Pa @SYSCONFDIR@/dhcpcd.enter-hook .
+and
+.Pa @SYSCONFDIR@/dhcpcd.exit-hook .
The default install supplies hook scripts for configuring
.Pa /etc/resolv.conf
and the hostname.
When
.Nm
runs, it loads
-.Pa @SYSCONFDIR@/dhcpcd.hook
+.Pa @SYSCONFDIR@/dhcpcd.enter-hook
and any scripts found in
.Pa @HOOKDIR@
-in a lexical order.
+in a lexical order and then finally
+.Pa @SYSCONFDIR@/dhcpcd.exit-hook
.Sh SEE ALSO
.Xr dhcpcd 8
.Sh AUTHORS
# 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