From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-fs/nfs-utils/files: nfs.initd |
Date: | Mon, 26 Jul 2010 01:02:09 |
Message-Id: | 20100726010207.599892C5F2@corvid.gentoo.org |
1 | flameeyes 10/07/26 01:02:07 |
2 | |
3 | Modified: nfs.initd |
4 | Log: |
5 | Fix nfs init script dependency generation for kerberos exports. |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.20 net-fs/nfs-utils/files/nfs.initd |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.20&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?rev=1.20&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/nfs-utils/files/nfs.initd?r1=1.19&r2=1.20 |
14 | |
15 | Index: nfs.initd |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v |
18 | retrieving revision 1.19 |
19 | retrieving revision 1.20 |
20 | diff -u -r1.19 -r1.20 |
21 | --- nfs.initd 30 May 2009 22:01:43 -0000 1.19 |
22 | +++ nfs.initd 26 Jul 2010 01:02:07 -0000 1.20 |
23 | @@ -1,7 +1,7 @@ |
24 | #!/sbin/runscript |
25 | -# Copyright 1999-2009 Gentoo Foundation |
26 | +# Copyright 1999-2010 Gentoo Foundation |
27 | # Distributed under the terms of the GNU General Public License v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.19 2009/05/30 22:01:43 vapier Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/net-fs/nfs-utils/files/nfs.initd,v 1.20 2010/07/26 01:02:07 flameeyes Exp $ |
30 | |
31 | opts="reload" |
32 | |
33 | @@ -18,7 +18,7 @@ |
34 | depend() { |
35 | local myneed="" |
36 | if [ -e /etc/exports ] ; then |
37 | - if awk '!/^[[:space:]]*#/ && $2 ~ /sec=/ { exit 0 } END { exit 1 }' /etc/exports ; then |
38 | + if awk '!/^[[:space:]]*#/ && $2 ~ /sec=/ { found=1; nextfile } END { exit !found }' /etc/exports ; then |
39 | myneed="${myneed} rpc.svcgssd" |
40 | fi |
41 | fi |