网络更改时调用脚本
connman-dispatcher的Python项目详细描述
#说明
文件夹。
当网络状态更改时,根据当前的网络状态,每个脚本都使用“up”或“down”参数执行。
比如:
`` bash
up(){
` handleup state
>
down{
` handleup state
;
;
esac
` `
esac
` ` ` `
状态从“down”更改为“up”,“/etc/connman dispatcher”
中的每个脚本都将使用“up”参数执行,例如:
/etc/connman dispatcher/10_handle_network_state_change.sh up
/etc/connman dispatcher/some_other_executable up
脚本以及脚本文件夹按名称排序。
文件夹。
当网络状态更改时,根据当前的网络状态,每个脚本都使用“up”或“down”参数执行。
比如:
`` bash
up(){
` handleup state
>
down{
` handleup state
;
;
esac
` `
esac
` ` ` `
状态从“down”更改为“up”,“/etc/connman dispatcher”
中的每个脚本都将使用“up”参数执行,例如:
/etc/connman dispatcher/10_handle_network_state_change.sh up
/etc/connman dispatcher/some_other_executable up
脚本以及脚本文件夹按名称排序。