-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|