Browse Source

Message at the end of install

Bob Mottram 9 years ago
parent
commit
b2305bf00b
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      src/freedombone-image-customise

+ 8
- 2
src/freedombone-image-customise View File

@@ -301,8 +301,14 @@ EOF
301 301
     echo "            rm /home/${MY_USERNAME}/.initial_setup" >> $rootdir/root/.bashrc
302 302
     echo "            touch /root/.remove_${GENERIC_IMAGE_USERNAME}" >> $rootdir/root/.bashrc
303 303
     echo '            shred -zu ~/login.txt' >> $rootdir/root/.bashrc
304
-    echo '            dialog --title "Congratulations!" --msgbox "\nYour Freedombone system has now installed\n\nPress any key to reboot and begin using it" 9 50' >> $rootdir/root/.bashrc
305
-
304
+    END_MESSAGE1=$'Congratulations!'
305
+    if [[ $VARIANT != "mesh" ]]; then
306
+        END_MESSAGE2=$'\nYour Freedombone system has now installed\n\nThe onion ssh service is at $SSH_ONION_HOSTNAME\n\nPress any key to reboot and begin using it'
307
+        echo '            SSH_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_ssh/hostname)' >> $rootdir/root/.bashrc
308
+    else
309
+        END_MESSAGE2=$'\nYour Freedombone system has now installed\n\nPress any key to reboot and begin using it'
310
+    fi
311
+    echo "            dialog --title '$END_MESSAGE1' --msgbox \"$END_MESSAGE2\" 9 50" >> $rootdir/root/.bashrc
306 312
     echo '            reboot' >> $rootdir/root/.bashrc
307 313
     echo '        fi' >> $rootdir/root/.bashrc
308 314
     echo '    else' >> $rootdir/root/.bashrc