From 426e7e73134aeb5beb08fbe6c0d93bcb8cbca4a0 Mon Sep 17 00:00:00 2001 From: TERMZL0ckd0wn <128064869+TERMZL0ckd0wn@users.noreply.github.com> Date: Wed, 22 Jan 2025 21:27:51 +0800 Subject: Update install.sh | added Void Linux Support --- install.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 8dab367..7f6c266 100755 --- a/install.sh +++ b/install.sh @@ -2,7 +2,7 @@ set -e -# alpine, arch, and suse have packages +# void, alpine, arch, and suse have packages # need to build on fedora (without terra) and debian/ubuntu ROOT=$(pwd) @@ -20,6 +20,8 @@ elif [ -f /usr/bin/dnf4 ]; then distro="fedora" elif [ -f /sbin/apk ]; then distro="alpine" +elif [ -f /bin/xbps-install ]; then + distro="void" elif grep 'ID=nixos' /etc/os-release; then echo "NixOS is not supported by this script." echo "Bailing out..." @@ -60,6 +62,9 @@ if ! [ -f /usr/bin/keyd ]; then alpine) $privesc apk add --no-interactive keyd &>> pkg.log ;; + void) + $privesc xbps-install -S keyd -y &>> pkg.log + ;; *) if [ "$FEDORA_HAS_KEYD" = "1" ]; then $privesc dnf4 install -y keyd &>> pkg.log @@ -110,6 +115,17 @@ case $distro in $privesc rc-service keyd restart fi ;; + void) + if [ -f /usr/bin/sv ]; then + $privesc ln -s /etc/sv/keyd /var/service + $privesc sv enable keyd + $privesc sv start keyd + else + echo "This script can only be used for Void Linux using 'runit' init system. Other init system on Void Linux are currently unsupported." + echo "I'M OUTTA HERE!" + exit 1 + fi + ;; *) $privesc systemctl enable keyd $privesc systemctl restart keyd -- cgit 1.4.1-2-gfad0