mirror of https://github.com/wulabing/Xray_onekey
去掉rng-tools处理
parent
5b55b5f331
commit
81590cefed
|
@ -170,19 +170,12 @@ dependency_install(){
|
|||
${INS} -y install libpcre3 libpcre3-dev zlib1g-dev dbus
|
||||
fi
|
||||
|
||||
${INS} -y rng-tools
|
||||
judge "rng-tools 安装"
|
||||
|
||||
${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
|
||||
else
|
||||
systemctl start rng-tools && systemctl enable rng-tools
|
||||
systemctl start haveged && systemctl enable haveged
|
||||
fi
|
||||
judge "nginx 编译依赖安装"
|
||||
|
|
Loading…
Reference in New Issue