|
@@ -403,6 +403,10 @@ EOF
|
403
|
403
|
if [[ $VARIANT != "mesh" && $VARIANT != "meshclient" && $VARIANT != "meshusb" && $VARIANT != "usb" ]]; then
|
404
|
404
|
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'
|
405
|
405
|
echo ' SSH_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_ssh/hostname)' >> $rootdir/root/.bashrc
|
|
406
|
+
|
|
407
|
+ echo ' if [ ${#SSH_ONION_HOSTNAME} -lt 2 ]; then' >> $rootdir/root/.bashrc
|
|
408
|
+ echo ' exit 62392' >> $rootdir/root/.bashrc
|
|
409
|
+ echo ' fi' >> $rootdir/root/.bashrc
|
406
|
410
|
else
|
407
|
411
|
END_MESSAGE2=$'\nYour system has now installed\n\nPress any key to reboot and begin using it'
|
408
|
412
|
fi
|