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

17 lines
375 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)";
2023-08-07 15:52:32 +00:00
pushd "$contextRoot" > /dev/null;
2024-03-07 20:59:24 +00:00
if lsmod | grep xone > /dev/null;
then
git clone "https://github.com/dlundqvist/xone.git" "$contextRoot";
sudo "$contextRoot/install.sh" --release;
yes "" | sudo xone-get-firmware.sh;
fi;
2023-08-07 15:52:23 +00:00
popd;
2023-08-07 15:52:32 +00:00
rm -rf "$contextRoot" > /dev/null;