瀏覽代碼

Reboot before ssh key generation

Bob Mottram 10 年之前
父節點
當前提交
62903f2081
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1
    2
      install-freedombone.sh

+ 1
- 2
install-freedombone.sh 查看文件

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