From e51428321c433cd7b157f057dc7ee431de2bf9a3 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 5 Dec 2011 15:55:37 +0100 Subject: [PATCH] openssh: check for files if they exist and not empty Signed-off-by: Stephan Raue --- packages/network/openssh/init.d/51_sshd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/network/openssh/init.d/51_sshd b/packages/network/openssh/init.d/51_sshd index abff4202df..16e255775c 100644 --- a/packages/network/openssh/init.d/51_sshd +++ b/packages/network/openssh/init.d/51_sshd @@ -31,7 +31,7 @@ SSHD="/usr/sbin/sshd" # Check for the SSH1 RSA key - if [ ! -f $RSA1_KEY ] ; then + if [ ! -s $RSA1_KEY ] ; then progress "SSH: generating SSH1 RSA key" mkdir -p /storage/.cache/ssh @@ -40,7 +40,7 @@ fi # Check for the SSH2 RSA key - if [ ! -f $RSA2_KEY ] ; then + if [ ! -s $RSA2_KEY ] ; then progress "SSH: generating SSH2 RSA key" mkdir -p /storage/.cache/ssh @@ -49,7 +49,7 @@ fi # Check for the SSH2 DSA key - if [ ! -f $DSA2_KEY ] ; then + if [ ! -s $DSA2_KEY ] ; then progress "SSH: generating SSH2 DSA key" mkdir -p /storage/.cache/ssh