Only install xone
if necessary
This commit is contained in:
parent
dba9efcbad
commit
b3d809c6ae
1 changed files with 8 additions and 3 deletions
|
@ -4,8 +4,13 @@ sudo pacman --noconfirm -Syu cabextract;
|
||||||
|
|
||||||
contextRoot="$(mktemp -d)";
|
contextRoot="$(mktemp -d)";
|
||||||
pushd "$contextRoot" > /dev/null;
|
pushd "$contextRoot" > /dev/null;
|
||||||
git clone "https://github.com/dlundqvist/xone.git" "$contextRoot";
|
|
||||||
sudo "$contextRoot/install.sh" --release;
|
if lsmod | grep xone > /dev/null;
|
||||||
yes "" | sudo xone-get-firmware.sh;
|
then
|
||||||
|
git clone "https://github.com/dlundqvist/xone.git" "$contextRoot";
|
||||||
|
sudo "$contextRoot/install.sh" --release;
|
||||||
|
yes "" | sudo xone-get-firmware.sh;
|
||||||
|
fi;
|
||||||
|
|
||||||
popd;
|
popd;
|
||||||
rm -rf "$contextRoot" > /dev/null;
|
rm -rf "$contextRoot" > /dev/null;
|
||||||
|
|
Loading…
Reference in a new issue