]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Allow a user defined enter and exit hook instead of just a single hook.
authorRoy Marples <roy@marples.name>
Sat, 12 Jul 2008 17:14:45 +0000 (17:14 +0000)
committerRoy Marples <roy@marples.name>
Sat, 12 Jul 2008 17:14:45 +0000 (17:14 +0000)
dhcpcd-run-hooks.8.in
dhcpcd-run-hooks.in

index a5452030d61101f17f43294bdaaf5c10ba64b3f0..ef762d66b859ce97a165fb6bd1474ebfce592821 100644 (file)
@@ -22,7 +22,7 @@
 .\" 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.
@@ -93,10 +95,11 @@ script to process them.
 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
index 7fd8b091dd1a6d3bdd89bda949577411f5cc9529..bd7c64fa66e11563d74ad0f29d5ce7b410cde8f7 100644 (file)
@@ -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