Quellcode durchsuchen

Rebooting messages

Bob Mottram vor 10 Jahren
Ursprung
Commit
a67d0af866
1 geänderte Dateien mit 18 neuen und 1 gelöschten Zeilen
  1. 18
    1
      install-freedombone.sh

+ 18
- 1
install-freedombone.sh Datei anzeigen

@@ -182,6 +182,12 @@ function configure_ssh {
182 182
   service ssh restart
183 183
   apt-get -y install fail2ban
184 184
   echo 'configure_ssh' >> $COMPLETION_FILE
185
+  echo ''
186
+  echo ''
187
+  echo '  *** Rebooting to initialise ssh settings and random number generator ***'
188
+  echo ''
189
+  echo "  ***              Reconnect via ssh on port $SSH_PORT                 ***"
190
+  echo ''
185 191
   reboot
186 192
 }
187 193
 
@@ -810,6 +816,17 @@ function folders_for_email_addresses {
810 816
   echo 'folders_for_email_addresses' >> $COMPLETION_FILE
811 817
 }
812 818
 
819
+function install_final {
820
+  if grep -Fxq "install_final" $COMPLETION_FILE; then
821
+	  return
822
+  fi
823
+  echo 'install_final' >> $COMPLETION_FILE
824
+  echo ''
825
+  echo '  *** Freedombone installation is complete. Rebooting... ***'
826
+  echo ''
827
+  reboot
828
+}
829
+
813 830
 argument_checks
814 831
 remove_proprietary_repos
815 832
 initial_setup
@@ -834,5 +851,5 @@ configure_gpg
834 851
 email_client
835 852
 folders_for_mailing_lists
836 853
 folders_for_email_addresses
837
-
854
+install_final
838 855
 echo 'Freedombone installation is complete'