Browse Source

Reboot before ssh key generation

Bob Mottram 11 years ago
parent
commit
62903f2081
1 changed files with 1 additions and 2 deletions
  1. 1
    2
      install-freedombone.sh

+ 1
- 2
install-freedombone.sh View File

@@ -157,8 +157,6 @@ function random_number_generator {
157 157
   if [ $USE_HWRNG == "yes" ]; then
158 158
     apt-get -y install rng-tools
159 159
     sed -i 's|#HRNGDEVICE=/dev/hwrng|HRNGDEVICE=/dev/hwrng|g' /etc/default/rng-tools
160
-    echo 'random_number_generator' >> $COMPLETION_FILE
161
-    reboot
162 160
   else
163 161
 	apt-get -y install haveged
164 162
   fi
@@ -184,6 +182,7 @@ function configure_ssh {
184 182
   service ssh restart
185 183
   apt-get -y install fail2ban
186 184
   echo 'configure_ssh' >> $COMPLETION_FILE
185
+  reboot
187 186
 }
188 187
 
189 188
 function regenerate_ssh_keys {