PortValhalla/scripts/Arch/Software/xone/install.sh

18 lines
399 B
Bash
Raw Normal View History

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-03-08 23:31:16 +00:00
if ! lsmod | 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-03-07 20:59:24 +00:00
sudo "$contextRoot/install.sh" --release;
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;