diff options
author | Jeremy Huddleston <eradicator@gentoo.org> | 2007-05-23 07:20:55 +0000 |
---|---|---|
committer | Jeremy Huddleston <eradicator@gentoo.org> | 2007-05-23 07:20:55 +0000 |
commit | 2999dafcc55ca7721a4a8466a22ecee3da4fb441 (patch) | |
tree | 1f67e4c041b42e7c5843a79fb56dd1e7228083c5 /net-nds/ypbind/files | |
parent | Version bump wrt bug #178477 (diff) | |
download | gentoo-2-2999dafcc55ca7721a4a8466a22ecee3da4fb441.tar.gz gentoo-2-2999dafcc55ca7721a4a8466a22ecee3da4fb441.tar.bz2 gentoo-2-2999dafcc55ca7721a4a8466a22ecee3da4fb441.zip |
Fixed bug #176125 thanks to DominikBuerkle <dominik.buerkle@webde.de>.
(Portage version: 2.1.2.7)
Diffstat (limited to 'net-nds/ypbind/files')
-rw-r--r-- | net-nds/ypbind/files/ypbind.initd | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/net-nds/ypbind/files/ypbind.initd b/net-nds/ypbind/files/ypbind.initd index 006050771d96..3d363cf2578e 100644 --- a/net-nds/ypbind/files/ypbind.initd +++ b/net-nds/ypbind/files/ypbind.initd @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-nds/ypbind/files/ypbind.initd,v 1.3 2006/04/10 19:57:11 eradicator Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-nds/ypbind/files/ypbind.initd,v 1.4 2007/05/23 07:20:55 eradicator Exp $ depend() { need net portmap @@ -10,22 +10,25 @@ depend() { start() { ebegin "Starting ypbind" - if [ -n "${YPBIND_OPTS}" ]; then YOPTS="-- ${YPBIND_OPTS}"; fi + if [[ -n "${YPBIND_OPTS}" ]]; then + YOPTS="-- ${YPBIND_OPTS}" + fi start-stop-daemon --start --quiet --exec /usr/sbin/ypbind ${YOPTS} - if [ -n "$?" ] ; then + local ret=$? + if [[ $ret -eq 0 ]] ; then notfound=1 for i in 0 1 2 3 4 5 6 7 8 9 do ypwhich &>/dev/null && { notfound=0; break; } sleep 1 done - if [ $notfound -eq 1 ] ; then + if [[ $notfound -eq 1 ]] ; then eend 1 "No NIS server found" else eend 0 fi else - eend $? + eend $ret fi } |