From: Luk Claes Date: Wed, 16 Mar 2011 20:34:24 +0000 (+0100) Subject: Don't barf when tcp redirection fails X-Git-Tag: debian/1%1.2.2-5~1 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=b28a50b0f9f5b32dfca23ff3bec6da0fe17d4219;p=nfs-utils.git Don't barf when tcp redirection fails --- diff --git a/debian/nfs-common.init b/debian/nfs-common.init index 18a4fdd..13aa974 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -138,7 +138,7 @@ case "$1" in log_progress_msg "statd" # See if portmap or rpcbind are running - cat /dev/tcp/localhost/111 + (cat /dev/tcp/localhost/111) 2>/dev/null RET=$? if [ $RET != 0 ]; then echo diff --git a/debian/nfs-kernel-server.init b/debian/nfs-kernel-server.init index a67f0d2..f9a385c 100644 --- a/debian/nfs-kernel-server.init +++ b/debian/nfs-kernel-server.init @@ -84,7 +84,7 @@ case "$1" in log_progress_msg "nfsd" # See if portmap or rpcbind are running - cat /dev/tcp/localhost/111 + (cat /dev/tcp/localhost/111) 2>/dev/null RET=$? if [ $RET != 0 ]; then echo