- 论坛徽章:
- 0
|
one more:
试了一下dhclient-exit-hooks,centos执行了dhclient-script, 但没执行dhclient-exit-hooks。看man应该肯定会调用:“
After all processing has completed, /sbin/dhclient-script checks for the presence of an executable /etc/dhclient-exit-hooks 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 /etc/dhclient-exit-hooks script can modify the valid of exit_status to change the exit status of dhclient-script.
” |
|