--- subroutines-linux.orig 2003-11-06 10:58:12.000000000 +0100 +++ subroutines-linux 2003-11-06 11:00:12.000000000 +0100 @@ -159,6 +159,10 @@ # first test if a given filename exists on the server testcmd="test -s /boot/fai/$HOSTNAME-localboot ; echo \$?" ret=`$FAI_REMOTESH -l $LOGUSER ${SERVER} "$testcmd"` + if [ -z "$ret" ]; then + echo "Error: Problem with ${FAI_REMOTESH} to ${SERVER}!" + ret = 0 + fi if [ "$ret" -ne 0 ]; then # copy the kernel to the server $FAI_REMOTECP $target/boot/vmlinuz-* $LOGUSER@${SERVER}:/boot/fai/$HOSTNAME-localboot