diff options
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 18 |
1 files changed, 17 insertions, 1 deletions
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 |