Add instructions to the motd for the second phase of bbb installation

This commit is contained in:
Bob Mottram 2015-02-14 17:18:38 +00:00
parent a8ec9c97ac
commit e01468148c
1 changed files with 15 additions and 4 deletions

View File

@ -1389,6 +1389,10 @@ function install_cjdns_tools {
echo 'install_cjdns_tools' >> $COMPLETION_FILE
}
function remove_instructions_from_motd {
sed -i '/## /d' /etc/motd
}
function check_hwrng {
# If hardware random number generation was enabled then make sure that the device exists.
# if /dev/hwrng is not found then any subsequent cryptographic key generation would
@ -4230,6 +4234,12 @@ function configure_ssh {
echo ''
echo " *** Reconnect via ssh on port $SSH_PORT, then run this script again ***"
echo ''
echo '## ' >> /etc/motd
echo '## Type "su" and enter your administrator password, then use the command:' >> /etc/motd
echo '## ' >> /etc/motd
echo '## freedombone -c freedombone.cfg' >> /etc/motd
echo '## ' >> /etc/motd
echo '## to continue the installation.' >> /etc/motd
reboot
}
@ -8502,6 +8512,7 @@ install_cjdns
install_cjdns_tools
backup_github_projects
configure_ssh
remove_instructions_from_motd
check_hwrng
search_for_attached_usb_drive
regenerate_ssh_keys