diff options
| author | Ryan <fauxpark@gmail.com> | 2020-11-27 01:37:54 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-26 14:37:54 +0000 |
| commit | c21d5a09735e84412ee5b3efb4c3f5d3fc734393 (patch) | |
| tree | c2b8405f45fb6f00b063561056fca4c5aad28bf8 /util/install/slackware.sh | |
| parent | 3afe0ea9b9f67ae33f54c1393b15d988764241a2 (diff) | |
| download | qmk_firmware-c21d5a09735e84412ee5b3efb4c3f5d3fc734393.tar.gz qmk_firmware-c21d5a09735e84412ee5b3efb4c3f5d3fc734393.zip | |
Refactor qmk_install.sh (#10681)
Diffstat (limited to 'util/install/slackware.sh')
| -rwxr-xr-x | util/install/slackware.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/util/install/slackware.sh b/util/install/slackware.sh new file mode 100755 index 000000000..d73303159 --- /dev/null +++ b/util/install/slackware.sh | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #!/bin/bash | ||
| 2 | |||
| 3 | _qmk_install_prepare() { | ||
| 4 | echo "Before you continue, please ensure that your user is added to sudoers and that sboinstall is configured." | ||
| 5 | read -p "Proceed? [y/N] " res | ||
| 6 | |||
| 7 | case $res in | ||
| 8 | [Yy]*) | ||
| 9 | ;; | ||
| 10 | *) | ||
| 11 | return 1;; | ||
| 12 | esac | ||
| 13 | } | ||
| 14 | |||
| 15 | _qmk_install() { | ||
| 16 | echo "Installing dependencies" | ||
| 17 | |||
| 18 | sudo sboinstall \ | ||
| 19 | avr-binutils avr-gcc avr-libc \ | ||
| 20 | arm-binutils arm-gcc newlib \ | ||
| 21 | python3 \ | ||
| 22 | avrdude dfu-programmer dfu-util teensy_loader_cli | ||
| 23 | |||
| 24 | python3 -m pip install --user -r $QMK_FIRMWARE_DIR/requirements.txt | ||
| 25 | } | ||
