19 lines
414 B
Bash
Executable File
19 lines
414 B
Bash
Executable File
#!/bin/sh
|
|
|
|
case "$1" in
|
|
start)
|
|
status=`cat /proc/sys/kernel/random/entropy_avail`
|
|
printf "Waiting for enough entropy: "
|
|
while [ $status -lt 200 ]; do
|
|
sleep 2
|
|
status=`cat /proc/sys/kernel/random/entropy_avail`
|
|
done
|
|
echo "OK"
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start}"
|
|
exit 1
|
|
esac
|
|
|
|
exit 0
|