[Nut-upsdev] Reserve '_' in driver names?
Arjen de Korte
nut+devel at de-korte.org
Fri Jun 8 07:16:13 UTC 2007
> Instead of modifying upsd why not ship a default ups.conf that contains
> a default driver named ['default' | 'automatic' | 'auto']?
That doesn't work. The configuration in 'ups.conf' requires both a
'driver' and 'port' (these are the minimum required parameters for UPSes
that don't support autodetection, see also 'man 5 ups.conf'). Since it is
impossible to know in advance which driver is needed, you'd need an entry
for every driver that supports autodetection.
> USB and other devices that can be autodetected/started could use the
> default name included in ups.conf.
This doesn't support the situation where more than one UPS is attached.
UPS ID's need to be unique.
See my followup message. I'd prefer to configure UPS'es that support
hot(un)plugging without 'ups.conf' entries.
Best regards, Arjen
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
More information about the Nut-upsdev