diff --git a/install-stage2.sh b/install-stage2.sh index 63c6dee..a95afba 100644 --- a/install-stage2.sh +++ b/install-stage2.sh @@ -126,7 +126,8 @@ read -p "Enter username: " NEW_USER #TODO: let the user choose additional groups (suggest sane defaults for different use cases) # cdrom? optical? storage? what they do? # users (dows this even do anything) -useradd -m -s /bin/bash -G wheel,users,kvm,video,audio,dialout,network,scanner,bluetooth "$NEW_USER" +useradd -m -s /bin/bash -G wheel,users,kvm,video,audio,dialout,network,scanner "$NEW_USER" +grep -q "bluetooth" /etc/group && usermod -aG bluetooth "$NEW_USER" passwd "$NEW_USER" echo "Cleaning up installation files..."