From e66a934c4090d91b80b7da813691d72c469026c8 Mon Sep 17 00:00:00 2001 From: Wendell Borges Date: Fri, 11 May 2018 18:49:04 -0300 Subject: [PATCH] Adjustments for installation on DietPi --- install.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index ce4483b..a4aafd1 100755 --- a/install.sh +++ b/install.sh @@ -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