From 269c28979665b5323239299213de8e8d7adf813c Mon Sep 17 00:00:00 2001 From: wulabing Date: Fri, 29 Nov 2019 17:05:24 +0800 Subject: [PATCH] =?UTF-8?q?rng-tools=20=E9=83=A8=E5=88=86=E6=83=85?= =?UTF-8?q?=E5=86=B5=E9=BB=98=E8=AE=A4=E9=85=8D=E7=BD=AE=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 1 + install_h2.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/install.sh b/install.sh index 755ecd7..e5a1ed8 100644 --- a/install.sh +++ b/install.sh @@ -170,6 +170,7 @@ dependency_install(){ ${INS} -y haveged judge "haveged 安装" + sed -i -r '/^HRNGDEVICE/d;/#HRNGDEVICE=\/dev\/null/a HRNGDEVICE=/dev/urandom' /etc/default/rng-tools if [[ "${ID}" == "centos" ]];then systemctl start rngd && systemctl enable rngd diff --git a/install_h2.sh b/install_h2.sh index d599e0e..cec4f97 100644 --- a/install_h2.sh +++ b/install_h2.sh @@ -178,6 +178,8 @@ dependency_install(){ ${INS} -y haveged judge "haveged 安装" + sed -i -r '/^HRNGDEVICE/d;/#HRNGDEVICE=\/dev\/null/a HRNGDEVICE=/dev/urandom' /etc/default/rng-tools + if [[ "${ID}" == "centos" ]];then systemctl start rngd && systemctl enable rngd systemctl start haveged && systemctl enable haveged