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

17 lines
399 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 ! lsmod | 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;