Refactor qmk_install.sh (#10681)

This commit is contained in:
Ryan 2020-11-27 01:37:54 +11:00 committed by GitHub
parent 3afe0ea9b9
commit c21d5a0973
Failed to generate hash of commit
19 changed files with 360 additions and 369 deletions

13
util/install/linux_shared.sh Executable file
View file

@ -0,0 +1,13 @@
#!/bin/bash
# For those distros that do not package bootloadHID
_qmk_install_bootloadhid() {
if ! command -v bootloadHID > /dev/null; then
wget https://www.obdev.at/downloads/vusb/bootloadHID.2012-12-08.tar.gz -O - | tar -xz -C /tmp
pushd /tmp/bootloadHID.2012-12-08/commandline/ > /dev/null
if make; then
sudo cp bootloadHID /usr/local/bin
fi
popd > /dev/null
fi
}