diff options
| author | Chris Johnston <chris@thejohnstons.net> | 2018-10-02 22:16:49 -0700 |
|---|---|---|
| committer | skullydazed <skullydazed@users.noreply.github.com> | 2018-10-02 22:16:49 -0700 |
| commit | 2d671a7e1a75bb9d03a40c0e440f897c7e52a15e (patch) | |
| tree | 77b2ff3f95a074108be42924a2b58688954b949a /util/linux_install.sh | |
| parent | 37cfd2c5009b932cfddec815c63c6846a5ef3854 (diff) | |
| download | qmk_firmware-2d671a7e1a75bb9d03a40c0e440f897c7e52a15e.tar.gz qmk_firmware-2d671a7e1a75bb9d03a40c0e440f897c7e52a15e.zip | |
Enable support for Linux Mint 18 with linux_install.sh (#4042)
Enable support for ubuntu-derived linux-es in installer
Checks /etc/os-release for mention of ubuntu and debian.
Linux Mint uses ID_LIKE=ubuntu, not ID_LIKE=debian (as seen in
Ubuntu 16.04, unsure about others)
Diffstat (limited to 'util/linux_install.sh')
| -rwxr-xr-x | util/linux_install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/linux_install.sh b/util/linux_install.sh index 9b8b92d08..0e4e26fd9 100755 --- a/util/linux_install.sh +++ b/util/linux_install.sh | |||
| @@ -4,7 +4,7 @@ if grep ID /etc/os-release | grep -qE "rhel|fedora"; then | |||
| 4 | sudo dnf install gcc unzip wget zip dfu-util dfu-programmer avr-gcc \ | 4 | sudo dnf install gcc unzip wget zip dfu-util dfu-programmer avr-gcc \ |
| 5 | avr-libc binutils-avr32-linux-gnu arm-none-eabi-gcc-cs \ | 5 | avr-libc binutils-avr32-linux-gnu arm-none-eabi-gcc-cs \ |
| 6 | arm-none-eabi-binutils-cs arm-none-eabi-newlib | 6 | arm-none-eabi-binutils-cs arm-none-eabi-newlib |
| 7 | elif grep ID /etc/os-release | grep -q debian; then | 7 | elif grep ID /etc/os-release | grep -qE 'debian|ubuntu'; then |
| 8 | sudo apt-get update | 8 | sudo apt-get update |
| 9 | sudo apt-get install gcc unzip wget zip gcc-avr binutils-avr avr-libc \ | 9 | sudo apt-get install gcc unzip wget zip gcc-avr binutils-avr avr-libc \ |
| 10 | dfu-programmer dfu-util gcc-arm-none-eabi binutils-arm-none-eabi \ | 10 | dfu-programmer dfu-util gcc-arm-none-eabi binutils-arm-none-eabi \ |
| @@ -38,5 +38,5 @@ fi | |||
| 38 | else | 38 | else |
| 39 | echo "Sorry, we don't recognize your OS. Help us by contributing support!" | 39 | echo "Sorry, we don't recognize your OS. Help us by contributing support!" |
| 40 | echo | 40 | echo |
| 41 | echo "https://docs.qmk.fm/contributing.html" | 41 | echo "https://docs.qmk.fm/#/contributing" |
| 42 | fi | 42 | fi |
