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

18 lines
416 B
Bash
Executable file

#!/bin/bash
# Prerequisites
sudo pacman --noconfirm -Syu cabextract;
contextRoot="$(mktemp -d)";
repo="https://github.com/manuth/xone.git";
pushd "$contextRoot" > /dev/null;
if ! dkms status --all 2>&1 | grep xone > /dev/null;
then
git clone "$repo" "$contextRoot";
sudo "$contextRoot/install.sh" --release;
yes "" | sudo xone-get-firmware.sh;
fi;
popd > /dev/null;
rm -rf "$contextRoot" > /dev/null;