2023-07-27 19:24:09 +00:00
|
|
|
#!/bin/bash
|
2023-08-07 15:22:57 +00:00
|
|
|
# Prerequisites
|
|
|
|
sudo pacman --noconfirm -Syu cabextract;
|
|
|
|
|
2023-07-27 19:24:09 +00:00
|
|
|
contextRoot="$(mktemp -d)";
|
2024-03-07 21:00:36 +00:00
|
|
|
repo="https://github.com/manuth/xone.git";
|
2023-08-07 15:52:32 +00:00
|
|
|
pushd "$contextRoot" > /dev/null;
|
2024-03-07 20:59:24 +00:00
|
|
|
|
2024-06-19 11:45:06 +00:00
|
|
|
if ! dkms status --all | grep xone > /dev/null;
|
2024-03-07 20:59:24 +00:00
|
|
|
then
|
2024-03-07 21:00:36 +00:00
|
|
|
git clone "$repo" "$contextRoot";
|
2024-06-19 11:44:29 +00:00
|
|
|
sudo ./install.sh --release;
|
2024-06-19 11:51:54 +00:00
|
|
|
sudo chmod -R a+rx /usr/src/xone*;
|
2024-03-07 20:59:24 +00:00
|
|
|
yes "" | sudo xone-get-firmware.sh;
|
|
|
|
fi;
|
2024-03-09 20:45:50 +00:00
|
|
|
popd > /dev/null;
|
2023-08-07 15:52:32 +00:00
|
|
|
rm -rf "$contextRoot" > /dev/null;
|