Check for failed installs

This commit is contained in:
Bob Mottram 2016-10-08 11:28:36 +01:00
parent ddd7bbd7ef
commit bc6431a8ce
1 changed files with 4 additions and 0 deletions

View File

@ -403,6 +403,10 @@ EOF
if [[ $VARIANT != "mesh" && $VARIANT != "meshclient" && $VARIANT != "meshusb" && $VARIANT != "usb" ]]; then
END_MESSAGE2=$'\nYour system has now installed\n\nThe onion ssh service is at $SSH_ONION_HOSTNAME\n\nPress any key to reboot and begin using it'
echo ' SSH_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_ssh/hostname)' >> $rootdir/root/.bashrc
echo ' if [ ${#SSH_ONION_HOSTNAME} -lt 2 ]; then' >> $rootdir/root/.bashrc
echo ' exit 62392' >> $rootdir/root/.bashrc
echo ' fi' >> $rootdir/root/.bashrc
else
END_MESSAGE2=$'\nYour system has now installed\n\nPress any key to reboot and begin using it'
fi