Fix sysctl invocation testing for missing entropy.
This commit is contained in:
parent
ec5bc5eca5
commit
1095510aed
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh -
|
||||
#
|
||||
# $NetBSD: security,v 1.130 2023/06/30 21:42:29 riastradh Exp $
|
||||
# $NetBSD: security,v 1.131 2023/07/05 12:07:21 martin Exp $
|
||||
# from: @(#)security 8.1 (Berkeley) 6/9/93
|
||||
#
|
||||
|
||||
|
@ -195,7 +195,7 @@ done | mtree -CM -k all > $SPECIALSPEC || exit 1
|
|||
# Check for enough entropy.
|
||||
#
|
||||
if checkyesno check_entropy; then
|
||||
if [ "$(sysctl -nq kern.entropy.needed)" != 0 ]; then
|
||||
if [ "$(sysctl -n kern.entropy.needed)" != 0 ]; then
|
||||
printf '\n'
|
||||
printf 'Entropy:\n'
|
||||
printf 'System may need more entropy for cryptography.\n'
|
||||
|
|
Loading…
Reference in New Issue