[Nut-upsdev] [RFC apcsmart V3 08/18] drivers/dstate: add dstate_getflags()

Arjen de Korte nut+devel at de-korte.org
Sun Mar 6 20:58:37 UTC 2011

Citeren Michal Soltys <soltys op ziu.info>:

> The only "problematic" case is #3, and the only way I see currently  
> is through checking the flag - as checking if the variable already  
> exists (which implies being present in .conf file) is not enough.  
> And if I poll such variable either way, user's override is lost - so  
> even if dstate_*() would handle it, the user provided values would  
> have to be stored somewhere else.

Try it out. If an override.* exists in ups.conf, any subsequent  
updates to that value will be ignored. It will not be made R/W, so the  
user can't make any changes to it (it will not be in the list  
presented by upsrw either).

Best regards, Arjen
Please keep list traffic on the list (off-list replies will be rejected)

More information about the Nut-upsdev mailing list