From acd210b47ce3e4740688784f987381627824586e Mon Sep 17 00:00:00 2001 From: Wendell Borges Date: Fri, 11 May 2018 18:29:27 -0300 Subject: [PATCH 1/5] checking for the existence of the file splash.png --- install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 82193cbd..ce4483b2 100755 --- a/install.sh +++ b/install.sh @@ -57,7 +57,10 @@ show_menu () { fi - sudo mv ./config/splash.png /usr/share/plymouth/themes/pix/splash.png + # checking for file splash.png + if [ -e /usr/share/plymouth/themes/pix/splash.png ]; then + sudo mv ./config/splash.png /usr/share/plymouth/themes/pix/splash.png + fi sed "s@#DIR#@${PWD}@g" config/craftbeerpiboot > /etc/init.d/craftbeerpiboot chmod 755 /etc/init.d/craftbeerpiboot; From e66a934c4090d91b80b7da813691d72c469026c8 Mon Sep 17 00:00:00 2001 From: Wendell Borges Date: Fri, 11 May 2018 18:49:04 -0300 Subject: [PATCH 2/5] Adjustments for installation on DietPi --- install.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index ce4483b2..a4aafd1e 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 From 15a2c2ae7c59cefa8f20498142751eb4f5354c1c Mon Sep 17 00:00:00 2001 From: Wendell Borges Date: Wed, 16 May 2018 20:06:58 -0300 Subject: [PATCH 3/5] installing rpi.gpio, not installed by default --- install.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/install.sh b/install.sh index a4aafd1e..cbde0f4e 100755 --- a/install.sh +++ b/install.sh @@ -45,6 +45,7 @@ show_menu () { # By default DietPi does not have this package installed. apt-get -y install build-essential + apt-get -y install python-rpi.gpio apt-get -y install python-setuptools easy_install pip From 571f9cf7cc041b8b1ab29415a89c38e83be336c8 Mon Sep 17 00:00:00 2001 From: Wendell Borges Date: Wed, 16 May 2018 20:14:05 -0300 Subject: [PATCH 4/5] does not show IP address, resolved --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index cbde0f4e..6ba00040 100755 --- a/install.sh +++ b/install.sh @@ -109,7 +109,7 @@ show_menu () { ;; 5) sudo /etc/init.d/craftbeerpiboot start - ipaddr=`ifconfig wlan0 2>/dev/null|awk '/inet addr:/ {print $2}'|sed 's/addr://'` + ipaddr=`ifconfig wlan0 2>/dev/null | awk '/inet/ {print $2}' | head -n1` whiptail --title "CraftBeerPi started" --msgbox "Please connect via Browser: http://$ipaddr:5000" 8 78 show_menu ;; From bf045e0d825b281b03ec05b8c13e368b32464b4f Mon Sep 17 00:00:00 2001 From: Wendell Borges Date: Thu, 24 May 2018 05:59:15 -0300 Subject: [PATCH 5/5] change location of apt build-essentials --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 6ba00040..1c4c6c2b 100755 --- a/install.sh +++ b/install.sh @@ -37,6 +37,8 @@ show_menu () { confirmAnswer "Would you like to install wiringPI? This is required to control the GPIO" if [ $? = 0 ]; then + # By default DietPi does not have this package installed. + apt-get -y install build-essential git clone git://git.drogon.net/wiringPi; cd wiringPi; ./build; cd ..; @@ -44,8 +46,7 @@ show_menu () { fi # By default DietPi does not have this package installed. - apt-get -y install build-essential - apt-get -y install python-rpi.gpio + apt-get -y install python-rpi.gpio apt-get -y install python-setuptools easy_install pip