| @@ -43,6 +43,9 @@ show_menu () { | |||||
| rm -rf wiringPi; | rm -rf wiringPi; | ||||
| fi | fi | ||||
| # By default DietPi does not have this package installed. | |||||
| apt-get -y install build-essential | |||||
| apt-get -y install python-setuptools | apt-get -y install python-setuptools | ||||
| easy_install pip | easy_install pip | ||||
| apt-get -y install python-dev | 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!" | 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 | if [ $? = 0 ]; then | ||||
| #apt-get -y update; apt-get -y upgrade; | #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 | fi | ||||
| # checking for file splash.png | # checking for file splash.png | ||||