summaryrefslogtreecommitdiff
path: root/client/dhclient-script.8
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>2001-02-15 05:36:07 +0000
committerTed Lemon <source@isc.org>2001-02-15 05:36:07 +0000
commit0c256f064c76cacbc2b8cc9440a4d536c2078060 (patch)
tree3c4c4476bf15b5444fbf8ad41c6f6d6543539248 /client/dhclient-script.8
parent82b2e77075362592ed9a8c13f7816c9a03fb48f2 (diff)
downloadisc-dhcp-0c256f064c76cacbc2b8cc9440a4d536c2078060.tar.gz
Clarify documentation of exit hooks.
Diffstat (limited to 'client/dhclient-script.8')
-rw-r--r--client/dhclient-script.812
1 files changed, 9 insertions, 3 deletions
diff --git a/client/dhclient-script.8 b/client/dhclient-script.8
index 940aaa16..c41f3406 100644
--- a/client/dhclient-script.8
+++ b/client/dhclient-script.8
@@ -67,9 +67,15 @@ After all processing has completed,
.B ETCDIR/dhclient-script
checks for the presence of an executable
.B ETCDIR/dhclient-exit-hooks
-script, which if present is invoked using the '.' command. The exit status
-is passed in the exit_status shell variable, and will always be zero if the
-script succeeded at the task for which it was invoked.
+script, which if present is invoked using the '.' command. The exit
+status of dhclient-script will be passed to dhclient-exit-hooks in the
+exit_status shell variable, and will always be zero if the script
+succeeded at the task for which it was invoked. The rest of the
+environment as described previously for dhclient-enter-hooks is also
+present. The
+.B ETCDIR/dhclient-exit-hooks
+script can modify the valid of exit_status to change the exit status
+of dhclient-script.
.SH OPERATION
When dhclient needs to invoke the client configuration script, it
writes a shell script into /tmp which defines a variety of variables.