diff --git a/ypbind.init b/ypbind.init index cc18889..f70a15e 100755 --- a/ypbind.init +++ b/ypbind.init @@ -66,8 +66,7 @@ start() { if [ -n "$NISDOMAIN" ]; then action $"domain is '$NISDOMAIN' " domainname $NISDOMAIN else # See if the domain is set in config file - NISDOMAIN=`grep "domain" /etc/yp.conf | grep -v ^# | \ - awk '{print $2}' | head -1` + NISDOMAIN=`awk '{ if ($1 == "domain") {print $2; exit} }' /etc/yp.conf` if [ -n "$NISDOMAIN" ]; then action $"domain is '$NISDOMAIN' " \ domainname $NISDOMAIN diff --git a/ypbind.spec b/ypbind.spec index 5bbb778..2a428ac 100644 --- a/ypbind.spec +++ b/ypbind.spec @@ -1,7 +1,7 @@ Summary: The NIS daemon which binds NIS clients to an NIS domain Name: ypbind Version: 1.32 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv2 Group: System Environment/Daemons Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2 @@ -79,7 +79,10 @@ fi %doc README NEWS COPYING %changelog -* Fri Nov 19 2010 Karel Klic - 3:1.32-2 +* Fri Nov 19 2010 Karel Klic - 3:1.32-3 +- ypbind.init: More effective syntax for #601296. + +* Fri Nov 19 2010 Karel Klic - 3:1.32-2 - Modified the chkconfig priorities from 27/73 to 24/76, to move ypbind before netfs. This is useful for hosts that mount NFS file systems that reside on a server which is resolvable through NIS.