summaryrefslogtreecommitdiffstats
path: root/util/install/linux_shared.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/install/linux_shared.sh')
-rwxr-xr-xutil/install/linux_shared.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/util/install/linux_shared.sh b/util/install/linux_shared.sh
new file mode 100755
index 0000000000..cb81e8611f
--- /dev/null
+++ b/util/install/linux_shared.sh
@@ -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
+}