The creation of the RANDFILE file is not really necessary

This commit is contained in:
Héctor Molinero Fernández
2022-01-16 01:33:19 +01:00
parent 43f3bfcaa3
commit b593eb1385

View File

@@ -76,12 +76,6 @@ if [ -z "${VGL_DISPLAY-}" ]; then
fi
fi
# Create RANDFILE if it does not exist
RANDFILE=${RANDFILE-${HOME:?}/.rnd}
if [ ! -f "${RANDFILE:?}" ] && [ -c /dev/urandom ]; then
dd if=/dev/urandom of="${RANDFILE:?}" bs=256 count=1 >/dev/null 2>&1
fi
# Generate SSH keys if they do not exist
if [ ! -f /etc/ssh/ssh_host_ed25519_key ]; then
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N '' >/dev/null