diff options
Diffstat (limited to 'util/linux_install.sh')
| -rw-r--r-- | util/linux_install.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/util/linux_install.sh b/util/linux_install.sh new file mode 100644 index 000000000..ef9de5b19 --- /dev/null +++ b/util/linux_install.sh | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | if grep ID /etc/os-release | grep -q rhel; then | ||
| 4 | # RPM based OS | ||
| 5 | sudo dnf install gcc unzip wget zip dfu-util dfu-programmer avr-gcc \ | ||
| 6 | avr-libc binutils-avr32-linux-gnu arm-none-eabi-gcc-cs \ | ||
| 7 | arm-none-eabi-binutils-cs arm-none-eabi-newlib | ||
| 8 | elif grep ID /etc/os-release | grep -q debian; then | ||
| 9 | sudo apt-get update | ||
| 10 | sudo apt-get install gcc unzip wget zip gcc-avr binutils-avr avr-libc \ | ||
| 11 | dfu-programmer dfu-util gcc-arm-none-eabi binutils-arm-none-eabi \ | ||
| 12 | libnewlib-arm-none-eabi | ||
| 13 | else | ||
| 14 | echo "Sorry, we don't recognize your OS. Help us by contributing support!" | ||
| 15 | echo | ||
| 16 | echo " https://docs.qmk.fm/contributing.html" | ||
| 17 | fi | ||
