Hello, I'm developing a Battery Simulator script for openwrt.

The objective is to set this script at init.d and leave it running. The problem is I didn't found any documents about how to get return variables, flags or Signals that indicates when the router is in transmiting status, reveiving status or idle status. I need those because depending on the router status, the battery would drain faster or slower.

Someone knows where can I found this kind of info? I've already checked all the openwrt wiki and documents and there is only the config options, not the API documents.

Thanks.