]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
hooks: document that hooks are not run within their own process
authorRoy Marples <roy@marples.name>
Tue, 20 Feb 2018 09:06:38 +0000 (09:06 +0000)
committerRoy Marples <roy@marples.name>
Tue, 20 Feb 2018 09:06:38 +0000 (09:06 +0000)
hooks/dhcpcd-run-hooks.8.in

index ada5c6b3faae5234c57d555d07ae354f6c1d44f7..1387b545bc498578e465bc3216bbcadb136497d8 100644 (file)
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd November 3, 2017
+.Dd Febuary 20, 2018
 .Dt DHCPCD-RUN-HOOKS 8
 .Os
 .Sh NAME
@@ -47,6 +47,19 @@ ntp or ypbind.
 A test hook is also supplied that simply echos the dhcp variables to the
 console from DISCOVER message.
 .Pp
+The hooks scripts are loaded into the current shell rather than executed
+in their own process.
+This allows each hook script, such as
+.Pa @SYSCONFDIR@/dhcpcd.enter-hook
+to customise environment variables or provide alternative functions to hooks
+further down the chain.
+As such, using the shell builtins
+.Ic exit ,
+.Ic exec
+or similar will cause
+.Nm
+to exit at that point.
+.Pp
 Each time
 .Nm
 is invoked,