Feat: add check for runit with pacman

It requires additional sddm-runit to add to service file directory (e.g., Artix-runit)

Signed-off-by: Noname Blank <nonameblank007@gmail.com>
This commit is contained in:
Noname Blank
2026-07-13 16:16:09 +05:30
parent d3b6cbbddd
commit 8fb1c72df5
+5
View File
@@ -246,6 +246,11 @@ enable_sddm() {
sv=$(_runit_sv) sv=$(_runit_sv)
runsvdir=$(_runit_runsvdir) runsvdir=$(_runit_runsvdir)
if command -v pacman >/dev/null 2>&1; then
sudo pacman --needed -S sddm-runit
info "sddm-runit installed. As additional pkg."
fi
if [ ! -d "$sv/sddm" ]; then if [ ! -d "$sv/sddm" ]; then
error "$sv/sddm not found - is sddm-runit (or equivalent) installed?" error "$sv/sddm not found - is sddm-runit (or equivalent) installed?"
return 1 return 1