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.
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.