summaryrefslogtreecommitdiff
path: root/util/install/slackware.sh
diff options
context:
space:
mode:
authorRyan <fauxpark@gmail.com>2020-11-27 01:37:54 +1100
committerGitHub <noreply@github.com>2020-11-26 14:37:54 +0000
commitc21d5a09735e84412ee5b3efb4c3f5d3fc734393 (patch)
treec2b8405f45fb6f00b063561056fca4c5aad28bf8 /util/install/slackware.sh
parent3afe0ea9b9f67ae33f54c1393b15d988764241a2 (diff)
Refactor qmk_install.sh (#10681)
Diffstat (limited to 'util/install/slackware.sh')
-rwxr-xr-xutil/install/slackware.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/util/install/slackware.sh b/util/install/slackware.sh
new file mode 100755
index 0000000000..d73303159d
--- /dev/null
+++ b/util/install/slackware.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+
+_qmk_install_prepare() {
+ echo "Before you continue, please ensure that your user is added to sudoers and that sboinstall is configured."
+ read -p "Proceed? [y/N] " res
+
+ case $res in
+ [Yy]*)
+ ;;
+ *)
+ return 1;;
+ esac
+}
+
+_qmk_install() {
+ echo "Installing dependencies"
+
+ sudo sboinstall \
+ avr-binutils avr-gcc avr-libc \
+ arm-binutils arm-gcc newlib \
+ python3 \
+ avrdude dfu-programmer dfu-util teensy_loader_cli
+
+ python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt
+}