mirror of https://github.com/wulabing/Xray_onekey
Merge remote-tracking branch 'origin/dev' into dev
commit
bce3abda46
12
install.sh
12
install.sh
|
@ -174,23 +174,23 @@ dependency_install(){
|
|||
fi
|
||||
|
||||
${INS} -y install rng-tools
|
||||
judge "rng-tools 安装"
|
||||
# judge "rng-tools 安装"
|
||||
|
||||
${INS} -y install haveged
|
||||
judge "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
|
||||
judge "rng-tools 启动"
|
||||
# judge "rng-tools 启动"
|
||||
systemctl start haveged && systemctl enable haveged
|
||||
judge "haveged 启动"
|
||||
# judge "haveged 启动"
|
||||
else
|
||||
systemctl start rng-tools && systemctl enable rng-tools
|
||||
judge "rng-tools 启动"
|
||||
# judge "rng-tools 启动"
|
||||
systemctl start haveged && systemctl enable haveged
|
||||
judge "haveged 启动"
|
||||
# judge "haveged 启动"
|
||||
fi
|
||||
}
|
||||
basic_optimization(){
|
||||
|
|
Loading…
Reference in New Issue