diff --git a/postinstall_partage.sh b/postinstall_partage.sh index 3cc05f3a2d787909c719d8c806edbb09b476a0f6..e3d8f7094d91980d6b293ab18914ecadc33ad0bf 100755 --- a/postinstall_partage.sh +++ b/postinstall_partage.sh @@ -48,4 +48,9 @@ line="0 1 1 * * $DIR/registry/scripts/clean.sh > /dev/null 2>&1" (crontab -l; echo "${line}") | crontab - # Copy ssh key to tftp +while [ ! -e "~/.ssh/id_rsa.pub" ] +do + sleep 10 +done + cp ~/.ssh/id_rsa.pub /var/lib/tftpboot/ltsp/id_rsa.pub