Comment 21 for bug 222761

Revision history for this message
Martin Pitt (pitti) wrote : Re: [Bug 222761] Re: [SRU] upsd doesn't start NOT 221737

Arnaud Quette [2008-06-13 7:35 -0000]:
> seconded. iirc, this fallback (nut already exist) should result in simply
> checking if nut is already part of the dialout group (ie using a test -z
> "getent group dialout | grep nut") and adding it if it's not.

Please do "if groups nut | grep -qw dialout", that's a little more
robust.