petrockblog/RetroPie-Setup — pull request #18 by mali1 (2012-08-08 14:12:14+00:00)
Title: Check if a group exists (and create it if it doesn't) before adding user

Some Images (RaspBMC, Raspbian Pisces) don't have the group input. This patch checks if a group exists before adding a user to it and creates the group if it doesn't exist.

To be honest, I'm not sure if this makes sense, because surely the groups that don't exist aren't used on that system. But I think there is no harm in adding these group and if they are used, e.g. by some gamepad/joystick drivers, they are already there.