2020-09-19 15:11:31 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
start)
|
|
|
|
status=`cat /proc/sys/kernel/random/entropy_avail`
|
2020-09-19 18:15:09 +02:00
|
|
|
printf "Waiting for enough entropy: "
|
2020-09-19 15:11:31 +02:00
|
|
|
while [ $status -lt 200 ]; do
|
|
|
|
sleep 2
|
|
|
|
status=`cat /proc/sys/kernel/random/entropy_avail`
|
|
|
|
done
|
2020-09-19 17:02:00 +02:00
|
|
|
echo "OK"
|
2020-09-19 15:11:31 +02:00
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo "Usage: $0 {start}"
|
|
|
|
exit 1
|
|
|
|
esac
|
|
|
|
|
|
|
|
exit 0
|