Skip to content

Commit

Permalink
Add Solus support to linux_install.sh script
Browse files Browse the repository at this point in the history
  • Loading branch information
chax authored and drashna committed May 26, 2019
1 parent fe8c220 commit 7fbb253
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions util/linux_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ GENTOO_WARNING="This script will make a USE change in order to ensure that that

SLACKWARE_WARNING="You will need the following packages from slackbuilds.org:\n\tarm-binutils\n\tarm-gcc\n\tavr-binutils\n\tavr-gcc\n\tavr-libc\n\tavrdude\n\tdfu-programmer\n\tdfu-util\n\tnewlib\nThese packages will be installed with sudo and sboinstall, so ensure that your user is added to sudoers and that sboinstall is configured."

SOLUS_INFO="Your tools are now installed. To start using them, open new terminal or source these scripts:\n\t/usr/share/defaults/etc/profile.d/50-arm-toolchain-path.sh\n\t/usr/share/defaults/etc/profile.d/50-avr-toolchain-path.sh"

if grep ID /etc/os-release | grep -qE "fedora"; then
sudo dnf install \
arm-none-eabi-binutils-cs \
Expand Down Expand Up @@ -155,6 +157,25 @@ elif grep ID /etc/os-release | grep -q slackware; then
echo "Quitting..."
fi

elif grep ID /etc/os-release | grep -q solus; then
sudo eopkg it \
-c system.devel \
arm-none-eabi-gcc \
arm-none-eabi-binutils \
arm-none-eabi-newlib \
avr-libc \
avr-binutils \
avr-gcc \
avrdude \
dfu-util \
dfu-programmer \
python3 \
git \
wget \
zip \
unzip
printf "\n$SOLUS_INFO\n"

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

0 comments on commit 7fbb253

Please sign in to comment.