文档说:
NetworkManager will execute scripts in the /etc/NetworkManager/dispatcher.d directory
它还说:
The environment contains more information about the interface and the connection. The following variables are available for the use in the dispatcher scripts: NM_DISPATCHER_ACTION The dispatcher action like "up" or "dhcp4-change", identical to the first command line argument. Since NetworkManager 1.12.0. ......
我的问题是,当环境变量仅在此上下文中可用时,我如何测试或调试这些脚本。
不完全调试,但你可以看到标准输出
当我收到这篇文章时,这就是我所需要的