regenerate_ssh_host_keys: run in the foreground

This commit is contained in:
Serge Schneider 2016-11-24 17:15:19 +00:00
parent 58e7e4023e
commit c5e4f61df2

View File

@ -15,7 +15,7 @@ set -e
case "$1" in case "$1" in
start) start)
log_daemon_msg "Regenerating ssh host keys (in background)" log_daemon_msg "Regenerating ssh host keys"
nohup sh -c "if [ -e /dev/hwrng ]; then nohup sh -c "if [ -e /dev/hwrng ]; then
dd if=/dev/hwrng of=/dev/urandom count=1 bs=4096 dd if=/dev/hwrng of=/dev/urandom count=1 bs=4096
fi; \ fi; \
@ -26,7 +26,7 @@ case "$1" in
sync && \ sync && \
rm /etc/init.d/regenerate_ssh_host_keys && \ rm /etc/init.d/regenerate_ssh_host_keys && \
update-rc.d regenerate_ssh_host_keys remove && \ update-rc.d regenerate_ssh_host_keys remove && \
printf '\nfinished\n'" > /var/log/regen_ssh_keys.log 2>&1 & printf '\nfinished\n'" > /var/log/regen_ssh_keys.log 2>&1
log_end_msg $? log_end_msg $?
;; ;;
*) *)