Sped up the ypbind initscript by using fgrep instead of grep (bz# 81247)

This commit is contained in:
Steve Dickson 2004-10-15 16:01:32 +00:00
parent 972dc4398b
commit 0f4df73600
2 changed files with 6 additions and 2 deletions

View File

@ -43,7 +43,7 @@ start() {
# that need NIS fail.
echo -n $"Listening for an NIS domain server."
for (( times = 1; times < 20; times++ )); do
/usr/sbin/rpcinfo -p | grep ypbind > /dev/null 2>&1 && ypwhich > /dev/null 2>&1
/usr/sbin/rpcinfo -p | LC_ALL=C fgrep -q ypbind && ypwhich > /dev/null 2>&1
RETVAL=$?
if [ $RETVAL -eq 0 ]; then
break;

View File

@ -1,7 +1,7 @@
Summary: The NIS daemon which binds NIS clients to an NIS domain.
Name: ypbind
Version: 1.17.2
Release: 2
Release: 3
License: GPL
Group: System Environment/Daemons
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{PACKAGE_VERSION}.tar.bz2
@ -84,6 +84,10 @@ exit 0
%doc README NEWS
%changelog
* Fri Oct 15 2004 Steve Dickson <SteveD@RedHat.com>
- Sped up the ypbind initscript by using fgrep
instead of grep (bz# 81247)
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt