소스 검색

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