mirror of https://github.com/wulabing/Xray_onekey
rng-tools 部分情况默认配置错误处理
parent
5aabce2f25
commit
269c289796
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue