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)";
|
||||
pushd "$contextRoot" > /dev/null;
|
||||
git clone "https://github.com/dlundqvist/xone.git" "$contextRoot";
|
||||
sudo "$contextRoot/install.sh" --release;
|
||||
yes "" | sudo xone-get-firmware.sh;
|
||||
|
||||
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;
|
||||
|
||||
popd;
|
||||
rm -rf "$contextRoot" > /dev/null;
|
||||
|
|
Loading…
Reference in a new issue