Procházet zdrojové kódy

Adjustments for installation on DietPi

pull/188/head
Wendell Borges před 7 roky
rodič
revize
e66a934c40
1 změnil soubory, kde provedl 10 přidání a 3 odebrání
  1. +10
    -3
      install.sh

+ 10
- 3
install.sh Zobrazit soubor

@@ -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


Načítá se…
Zrušit
Uložit