From: Luk Claes Date: Wed, 16 Mar 2011 19:55:23 +0000 (+0100) Subject: Replace lsof usage with redirection to /dev/tcp X-Git-Tag: debian/1%1.2.2-5~3 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=c315741380515fe31cbf34960208420efe443069;p=nfs-utils.git Replace lsof usage with redirection to /dev/tcp --- diff --git a/debian/control b/debian/control index 0d076da..5f24bcd 100644 --- a/debian/control +++ b/debian/control @@ -12,7 +12,7 @@ Vcs-Browser: http://git.debian.org/?p=kernel/nfs-utils.git Package: nfs-kernel-server Priority: optional Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, nfs-common (= ${binary:Version}), ucf, lsb-base (>= 1.3-9ubuntu3), libblkid1 (>= 1.39+1.40-WIP-2006.11.14+dfsg-2), lsof +Depends: ${shlibs:Depends}, ${misc:Depends}, nfs-common (= ${binary:Version}), ucf, lsb-base (>= 1.3-9ubuntu3), libblkid1 (>= 1.39+1.40-WIP-2006.11.14+dfsg-2) Provides: knfs, nfs-server Conflicts: knfs, nfs-server Replaces: knfs, nfs-server @@ -32,7 +32,7 @@ Homepage: http://nfs.sourceforge.net/ Package: nfs-common Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, rpcbind | portmap, adduser, ucf, lsb-base (>= 1.3-9ubuntu3), netbase (>= 4.24), initscripts (>= 2.86.ds1-38.1), lsof +Depends: ${shlibs:Depends}, ${misc:Depends}, rpcbind | portmap, adduser, ucf, lsb-base (>= 1.3-9ubuntu3), netbase (>= 4.24), initscripts (>= 2.86.ds1-38.1) Provides: nfs-client Conflicts: nfs-client Replaces: nfs-client, nfs-kernel-server (<< 1:1.0.7-5), mount (<< 2.13~) diff --git a/debian/nfs-common.init b/debian/nfs-common.init index d69eb34..92ea10d 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 - lsof -i :111 >/dev/null + cat /dev/tcp/localhost/111 RET=$? if [ $RET != 0 ]; then echo diff --git a/debian/nfs-kernel-server.init b/debian/nfs-kernel-server.init index b7a9633..298e3b4 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 - lsof -i :111 >/dev/null + cat /dev/tcp/localhost/111 RET=$? if [ $RET != 0 ]; then echo