Citeren Michal Soltys <[email protected]>:

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)


_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev

Reply via email to