diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index 099f95bc..827b1529 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -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