7df74a82fa
This package is not installed (see I9b88baf422d947d5209d036766a86b09dca0c21a) so we can't enable this service on 9-stream. Change-Id: Ie42d73e7cd12c80b076429a643d95778ff5665b8
33 lines
579 B
Bash
Executable File
33 lines
579 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [[ ${DISTRO_NAME} == 'centos' && ${DIB_RELEASE} = '9-stream' ]]; then
|
|
# 9-stream we are just using the default rngd
|
|
exit 0
|
|
fi
|
|
|
|
case "$DIB_INIT_SYSTEM" in
|
|
upstart)
|
|
# nothing to do
|
|
exit 0
|
|
;;
|
|
systemd)
|
|
systemctl enable haveged.service
|
|
;;
|
|
openrc)
|
|
rc-update add haveged default
|
|
;;
|
|
sysv)
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "Unsupported init system $DIB_INIT_SYSTEM"
|
|
exit 1
|
|
;;
|
|
esac
|