From 4d83c5a8f9b7de7e5c8e8f95dffd558428ef7640 Mon Sep 17 00:00:00 2001 From: jwihardi Date: Mon, 13 Oct 2025 21:12:43 -0400 Subject: [PATCH] fixed i2c group detection --- dist-gentoo/install-setups.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dist-gentoo/install-setups.sh b/dist-gentoo/install-setups.sh index 9181d09c2..b79d2f7e2 100644 --- a/dist-gentoo/install-setups.sh +++ b/dist-gentoo/install-setups.sh @@ -6,7 +6,10 @@ showfun install-python-packages v install-python-packages -v getent group i2c || sudo groupadd i2c +if [[ -z $(getent group i2c) ]]; then + v sudo groupadd i2c +fi + v sudo usermod -aG video,i2c,input "$(whoami)" if [[ ! -z $(systemctl --version) ]]; then