You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/deploy/NVA_build/first_install_diaglog.sh
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -199,6 +199,23 @@ function configure_networking_dialog {
199
199
fi
200
200
done
201
201
}
202
+
203
+
204
+
functiongenerate_entropy(){
205
+
local path
206
+
local pid=()
207
+
echo"Generate entropy for /dev/random (openssl and such) for 5m"
208
+
forpathin$(find /dev/disk/by-uuid/ -type l )
209
+
do
210
+
md5sum ${path}&
211
+
pid+=($!)
212
+
done
213
+
ps -ef | grep md5 | grep -v grep
214
+
sleep 300
215
+
echo"killing md5sum (pid: ${pid[@]})"
216
+
kill -9 ${pid[@]}2> /dev/null
217
+
}
218
+
202
219
functionconfigure_ntp_dialog {
203
220
local ntp_server=$(grep "server.*NooBaa Configured" /etc/ntp.conf | sed 's:.*server \(.*\) iburst.*:\1:')
204
221
local tz=$(ls -la /etc/localtime | sed 's:.*/usr/share/zoneinfo/\(.*\):\1:')
@@ -361,6 +378,7 @@ is a short first install wizard to help configure \n\Z5\ZbNooBaa\Zn to best suit
361
378
}
362
379
363
380
functionend_wizard {
381
+
generate_entropy &
364
382
local current_ip=$(ifconfig | grep -w 'inet'| grep -v 127.0.0.1 | awk '{print $2}'| head -n 1)
365
383
dialog --colors --nocancel --backtitle "NooBaa First Install" --title '\Z5\ZbNooBaa\Zn is Ready' --msgbox "\n\Z5\ZbNooBaa\Zn was configured and is ready to use.\nYou can access \Z5\Zbhttp://${current_ip}:8080\Zn to start using your system." 7 72
0 commit comments