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