Ver código fonte

Adjustments for installation on DietPi

pull/188/head
Wendell Borges 7 anos atrás
pai
commit
e66a934c40
1 arquivos alterados com 10 adições e 3 exclusões
  1. +10
    -3
      install.sh

+ 10
- 3
install.sh Ver arquivo

@@ -43,6 +43,9 @@ show_menu () {
rm -rf wiringPi;
fi

# By default DietPi does not have this package installed.
apt-get -y install build-essential

apt-get -y install python-setuptools
easy_install pip
apt-get -y install python-dev
@@ -52,9 +55,13 @@ show_menu () {
confirmAnswer "Would you like to add active 1-wire support at your Raspberry PI now? IMPORTANT: The 1-wire thermometer must be conneted to GPIO 4!"
if [ $? = 0 ]; then
#apt-get -y update; apt-get -y upgrade;
echo '# CraftBeerPi 1-wire support' >> "/boot/config.txt"
echo 'dtoverlay=w1-gpio,gpiopin=4,pullup=on' >> "/boot/config.txt"

if [ -e /DietPi/config.txt ]; then
echo '# CraftBeerPi 1-wire support' >> "/DietPi/config.txt"
echo 'dtoverlay=w1-gpio,gpiopin=4,pullup=on' >> "/DietPi/config.txt"
else
echo '# CraftBeerPi 1-wire support' >> "/boot/config.txt"
echo 'dtoverlay=w1-gpio,gpiopin=4,pullup=on' >> "/boot/config.txt"
fi
fi

# checking for file splash.png


Carregando…
Cancelar
Salvar