We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 84af02f + 78942be commit 4627e3cCopy full SHA for 4627e3c
1 file changed
src/scripts/create_ap
@@ -448,7 +448,6 @@ get_new_macaddr() {
448
haveged_watchdog() {
449
local show_warn=1
450
while :; do
451
- mutex_lock
452
if [[ $(cat /proc/sys/kernel/random/entropy_avail) -lt 1000 ]]; then
453
if ! which haveged > /dev/null 2>&1; then
454
if [[ $show_warn -eq 1 ]]; then
@@ -458,10 +457,11 @@ haveged_watchdog() {
458
457
elif ! pidof haveged > /dev/null 2>&1; then
459
echo "Low entropy detected, starting haveged"
460
# boost low-entropy
+ mutex_lock
461
haveged -w 1024 -p $COMMON_CONFDIR/haveged.pid
462
+ mutex_unlock
463
fi
464
- mutex_unlock
465
sleep 2
466
done
467
}
0 commit comments