diff options
author | WeirdTreeThing <bradyn127@protonmail.com> | 2023-12-12 17:40:08 -0500 |
---|---|---|
committer | WeirdTreeThing <bradyn127@protonmail.com> | 2023-12-12 17:40:08 -0500 |
commit | 25b0e9c2a10fc834d414b427c40d572fb38cda14 (patch) | |
tree | fd832af317855e63b86ceab510f2abd80ea3f172 /install.sh | |
parent | 9fcc286959c7f2d72f86fbf59533ebc66c4ee775 (diff) |
Add support for Chimera Linux
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/install.sh b/install.sh index c7f6fcd..78872c8 100755 --- a/install.sh +++ b/install.sh @@ -23,7 +23,6 @@ elif [ -f /usr/bin/doas ]; then privesc="doas" fi - if ! [ -f /usr/bin/keyd ]; then # if keyd isnt installed echo "Installing keyd dependencies" @@ -79,8 +78,14 @@ $privesc cp cros.conf /etc/keyd echo "Enabling keyd" case $distro in alpine) - $privesc rc-update add keyd - $privesc rc-service keyd restart + # Chimera uses apk like alpine but uses dinit instead of openrc + if [ -f /usr/bin/dinitctl ]; then + $privesc dinitctl start keyd + $privesc dinitctl enable keyd + else + $privesc rc-update add keyd + $privesc rc-service keyd restart + fi ;; *) $privesc systemctl enable keyd |