From b28a50b0f9f5b32dfca23ff3bec6da0fe17d4219 Mon Sep 17 00:00:00 2001 From: Luk Claes Date: Wed, 16 Mar 2011 21:34:24 +0100 Subject: [PATCH] Don't barf when tcp redirection fails --- debian/nfs-common.init | 2 +- debian/nfs-kernel-server.init | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5