Install packages for Arch Linux
This commit is contained in:
parent
27b6cdf252
commit
6c6b9ab7de
1 changed files with 13 additions and 3 deletions
16
install.sh
16
install.sh
|
@ -18,9 +18,19 @@ ver="0.3"
|
||||||
# the sources during kernel updates
|
# the sources during kernel updates
|
||||||
marker="0.0.0"
|
marker="0.0.0"
|
||||||
|
|
||||||
apt update
|
# update and install required packages
|
||||||
apt-get -y install raspberrypi-kernel-headers raspberrypi-kernel
|
which apt &>/dev/null
|
||||||
apt-get -y install dkms git i2c-tools libasound2-plugins
|
if [[ $? -eq 0 ]]; then
|
||||||
|
apt update -y
|
||||||
|
apt-get -y install raspberrypi-kernel-headers raspberrypi-kernel
|
||||||
|
apt-get -y install dkms git i2c-tools libasound2-plugins
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Arch Linux
|
||||||
|
which pacman &>/dev/null
|
||||||
|
if [[ $? -eq 0 ]]; then
|
||||||
|
pacman -Syu --needed git gcc automake make dkms linux-raspberrypi-headers i2c-tools
|
||||||
|
fi
|
||||||
|
|
||||||
# locate currently installed kernels (may be different to running kernel if
|
# locate currently installed kernels (may be different to running kernel if
|
||||||
# it's just been updated)
|
# it's just been updated)
|
||||||
|
|
Loading…
Reference in a new issue