Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Fmstrat authored Oct 18, 2017
1 parent 7272a06 commit 867154c
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,18 @@ echo "exit 0" | sudo tee --append /etc/rc.local

echo " -=- Time to set up the Pi0 -=-"
echo " -=- Logging into the Pi0 -=-"
if ! /opt/diy-ipmi/Pi3/checkPi0Login.sh; then
echo " -=- Logging into the Pi0 as 'pi' with password 'raspberry' has failed -=-"
echo " Open another terminal session and use 'screen /dev/ttyUSB0 115200' to login to the Pi0"
echo " Once logged in, hit 'Ctrl-A' then type ':quit' to exit the screen session"
echo " Lastly, return here and press 'Enter' to continue or 'Ctrl-C' to give up. -=-"
read CONT
fi
LOGINSUCCESS=0
while [ $LOGINSUCCESS -eq 0 ]; do
if ! /opt/diy-ipmi/Pi3/checkPi0Login.sh; then
echo " -=- Logging into the Pi0 as 'pi' with password 'raspberry' has failed -=-"
echo " Open another terminal session and use 'screen /dev/ttyUSB0 115200' to login to the Pi0"
echo " Once logged in, hit 'Ctrl-A' then type ':quit' to exit the screen session"
echo " Lastly, return here and press 'Enter' to continue or 'Ctrl-C' to give up. -=-"
read CONT
else
LOGINSUCCESS=1
fi
done

echo " -=- Setting up auto login on the serial terminal -=-"
echo "sudo systemctl enable [email protected]" >> /dev/ttyUSB0
Expand Down

0 comments on commit 867154c

Please sign in to comment.