install-stage2: handle potentially missing group "bluetooth"
parent
3e5341dc89
commit
2ecf70e0b1
|
|
@ -126,7 +126,8 @@ read -p "Enter username: " NEW_USER
|
||||||
#TODO: let the user choose additional groups (suggest sane defaults for different use cases)
|
#TODO: let the user choose additional groups (suggest sane defaults for different use cases)
|
||||||
# cdrom? optical? storage? what they do?
|
# cdrom? optical? storage? what they do?
|
||||||
# users (dows this even do anything)
|
# 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"
|
passwd "$NEW_USER"
|
||||||
|
|
||||||
echo "Cleaning up installation files..."
|
echo "Cleaning up installation files..."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue