2020-10-07 13:49:40 +05:00
|
|
|
#!/bin/bash -e
|
2020-04-06 16:21:15 +03:00
|
|
|
################################################################################
|
|
|
|
|
## File: rndgenerator.sh
|
|
|
|
|
## Desc: Install random number generator
|
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
|
|
# Install haveged
|
|
|
|
|
apt-get -y install haveged
|
|
|
|
|
|
|
|
|
|
# Run tests to determine that the software installed as expected
|
|
|
|
|
echo "Testing to make sure that script performed as expected, and basic scenarios work"
|
|
|
|
|
for cmd in haveged; do
|
|
|
|
|
if ! command -v $cmd; then
|
|
|
|
|
echo "$cmd was not installed or not found on PATH"
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
done
|