在使用ISC dhclient且已为eth0接口协商(成功与否)IP地址时,dhclient然后按照以下顺序执行bash脚本:
/sbin/dhclient-script
/etc/dhcp/dhclient-enter-hooks
/etc/dhcp/dhclient-enter-hooks.d/*
/etc/dhcp/dhclient-exit-hooks
/etc/dhcp/dhclient-exit-hooks.d/*
问题是在/etc/dhcp/dhclient-enter-hooks.d
子目录中找到的多个脚本中的执行顺序是什么?他们是吗?
我已经阅读了dhclient-script
上的手册页,无法识别在https://linux.die.net/man/8/dhclient-script上的排序。
在一个不相关的主题上,执行的其他脚本是:
/etc/dhcp/dhclient-up-hooks
/etc/dhcp/dhclient-eth0-up-hooks
/etc/dhcp/dhclient-down-hooks
/etc/dhcp/dhclient-eth0-dowh-up-hooks