From 1a14e80d3722c7f84f8e5ef54c57789cfc839e33 Mon Sep 17 00:00:00 2001 From: simono41 Date: Mon, 3 Sep 2018 01:58:07 +0200 Subject: [PATCH] fix --- arch-graphical-install-auto | 16 +++++++++++++++- base_libre-xfce4-openrc.txt | 3 +++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index 2704e06..7715a1d 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -165,7 +165,21 @@ function ldconfigcache() { } function addusers() { - groupadd users + if ! cat /etc/group | grep users; then + groupadd users + fi + if ! cat /etc/group | grep wheel; then + groupadd wheel + fi + if ! cat /etc/group | grep audio; then + groupadd audio + fi + if ! cat /etc/group | grep video; then + groupadd video + fi + if ! cat /etc/group | grep optical; then + groupadd optical + fi useradd -m -g users -G wheel,audio,video,sys,optical -s /bin/bash $username passwd ${username} <