SVN: rc-scripts/trunk/rc.d/init.d/functions
glen
glen at pld-linux.org
Tue Jul 3 13:49:52 CEST 2007
Author: glen
Date: Tue Jul 3 13:49:52 2007
New Revision: 8656
Modified:
rc-scripts/trunk/rc.d/init.d/functions
Log:
- do not depend on which command to find rpcinfo
Modified: rc-scripts/trunk/rc.d/init.d/functions
==============================================================================
--- rc-scripts/trunk/rc.d/init.d/functions (original)
+++ rc-scripts/trunk/rc.d/init.d/functions Tue Jul 3 13:49:52 2007
@@ -928,9 +928,8 @@
check_portmapper() {
typeset RPCINFO
- RPCINFO=$(which rpcinfo 2>/dev/null)
- if [ -x "$RPCINFO" ]; then
- if $RPCINFO -p localhost >/dev/null 2>/dev/null; then
+ if [ -x /usr/sbin/rpcinfo ]; then
+ if /usr/sbin/rpcinfo -p localhost >/dev/null 2>/dev/null; then
return 0
else
return 1
More information about the pld-cvs-commit
mailing list