Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for slackware distribution (linux_install.sh) #4369

Merged
merged 3 commits into from
Nov 12, 2018
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions util/linux_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@

GENTOO_WARNING="This script will make a USE change in order to ensure that that QMK works on your system. All changes will be sent to the the file /etc/portage/package.use/qmk_firmware -- please review it, and read Portage's output carefully before installing any packages on your system. You will also need to ensure that your kernel is compiled with support for the keyboard chip that you are using (e.g. enable Arduino for the Pro Micro). Further information can be found on the Gentoo wiki."

manuel-arguelles marked this conversation as resolved.
Show resolved Hide resolved
read -rd '' SLACKWARE_WARNING << EOF
manuel-arguelles marked this conversation as resolved.
Show resolved Hide resolved
You will need the following packages from slackbuilds.org:
arm-binutils
arm-gcc
avr-binutils
avr-gcc
avr-libc
avrdude
dfu-programmer
dfu-util
newlib

EOF

if grep ID /etc/os-release | grep -qE "fedora"; then
sudo dnf install \
arm-none-eabi-binutils-cs \
Expand Down Expand Up @@ -126,6 +140,25 @@ elif grep ID /etc/os-release | grep -qE "opensuse|tumbleweed"; then
wget \
zip

elif grep ID /etc/os-release | grep -q slackware; then
echo $SLACKWARE_WARNING
manuel-arguelles marked this conversation as resolved.
Show resolved Hide resolved
read -rp "Would you like to install them with sudo and sboinstall (y/N)? " answer
manuel-arguelles marked this conversation as resolved.
Show resolved Hide resolved
if echo "$answer" | grep -iq "^y" ;then
sudo sboinstall \
avr-binutils \
avr-gcc \
avr-libc \
avrdude \
dfu-programmer \
dfu-util \
arm-binutils \
arm-gcc \
newlib
echo "Done!"
else
echo "Quitting..."
fi

else
echo "Sorry, we don't recognize your OS. Help us by contributing support!"
echo
Expand Down