Skip to content

Commit

Permalink
Message about preloaded questions
Browse files Browse the repository at this point in the history
  • Loading branch information
rlancaste committed Nov 2, 2019
1 parent f91cd06 commit 8e7fd83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setupAstroRaspbianPi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function checkForConnection
testCommand=$(curl -Is $2 | head -n 1)
if [[ "${testCommand}" == *"OK"* || "${testCommand}" == *"Moved"* ]]
then
echo "$1 connection was found. The script can proceed."
echo "$1 was found. The script can proceed."
else
echo "$1, ($2), a required connection, was not found, aborting script."
echo "If you would like the script to run anyway, please comment out the line that tests this connection in this script."
Expand Down Expand Up @@ -74,6 +74,8 @@ PS1='AstroPi3-SetupAstroRaspbianPi~$ '
#########################################################
############# Asking Questions for optional items later

display "Checking items that will require your input while running the script, so you don't get asked so many questions later. Note that some installations later (VNC, samba in particular) may still require your input later on, this is out of my control."

if [ -z "$(ls /etc/NetworkManager/system-connections/ | grep Link\ Local\ Ethernet)" ]
then
read -p "Do you want to give your pi a static ip address so that you can connect to it in the observing field with no router or wifi and just an ethernet cable (y/n)? " useStaticIP
Expand Down

0 comments on commit 8e7fd83

Please sign in to comment.