瀏覽代碼

Check for failed installs

Bob Mottram 8 年之前
父節點
當前提交
bc6431a8ce
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4
    0
      src/freedombone-image-customise

+ 4
- 0
src/freedombone-image-customise 查看文件

@@ -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