diff options
author | dragon788 <dragon788@users.noreply.github.com> | 2016-01-05 22:39:49 -0600 |
---|---|---|
committer | dragon788 <dragon788@users.noreply.github.com> | 2016-01-05 22:39:49 -0600 |
commit | ee424f86081c538fc74c3e9b50c7b1eb595b6e58 (patch) | |
tree | 39b2b5d62a8f73e546ae1c5f3d916db3028615bd /avr_setup.sh | |
parent | ab7d6dca4106bae6876b46f06fe157478a62ecda (diff) |
Adding update of vagrant VM every time it is booted
Diffstat (limited to 'avr_setup.sh')
-rw-r--r-- | avr_setup.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/avr_setup.sh b/avr_setup.sh index ff4153ba37..cd7412d748 100644 --- a/avr_setup.sh +++ b/avr_setup.sh @@ -6,18 +6,26 @@ if [[ -n "$(type -P pacman )" ]]; then # Arch linux and derivatives like Apricity - pacman -S --needed --noconfirm base-devel avr-gcc avr-binutils avr-libc dfu-utils + # Future improvements: + # Allow user to speed up package installs using powerpill/wget tweaks + # Always run the pacman mirror update script if possible when vagrant comes up + # This will ensure that users never get stalled on a horribly slow mirror + pacman -Syyu --needed --noconfirm + pacman -S --needed --noconfirm base-devel avr-gcc avr-binutils avr-libc dfu-util elif [[ -n "$(type -P apt-get)" ]]; then # Debian and derivatives + apt-get update -y && apt-get upgrade -y apt-get install -y build-essential gcc unzip wget zip gcc-avr binutils-avr avr-libc elif [[ -n "$(type -P yum)" ]]; then # Fedora, CentOS or RHEL and derivatives + yum -y makecache && yum -y update yum -y install gcc glibc-headers kernel-devel kernel-headers make perl git wget elif [[ -n "$(type -P zypper)" ]]; then # openSUSE + zypper refresh --non-interactive && zypper update --non-interactive zypper --non-interactive install git make gcc kernel-devel patch wget fi |