public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in net-misc/quagga/files: quagga-services.init.2
@ 2011-09-27 21:51 Diego Petteno (flameeyes)
  0 siblings, 0 replies; only message in thread
From: Diego Petteno (flameeyes) @ 2011-09-27 21:51 UTC (permalink / raw
  To: gentoo-commits

flameeyes    11/09/27 21:51:34

  Modified:             quagga-services.init.2
  Log:
  Make sure you saved before committing.
  
  (Portage version: 2.2.0_alpha59/cvs/Linux x86_64)

Revision  Changes    Path
1.3                  net-misc/quagga/files/quagga-services.init.2

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init.2?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init.2?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/quagga/files/quagga-services.init.2?r1=1.2&r2=1.3

Index: quagga-services.init.2
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/quagga/files/quagga-services.init.2,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- quagga-services.init.2	27 Sep 2011 21:50:12 -0000	1.2
+++ quagga-services.init.2	27 Sep 2011 21:51:34 -0000	1.3
@@ -1,11 +1,13 @@
 #!/sbin/runscript
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/quagga-services.init.2,v 1.2 2011/09/27 21:50:12 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/quagga/files/quagga-services.init.2,v 1.3 2011/09/27 21:51:34 flameeyes Exp $
 
 : ${CFGFILE:=/etc/quagga/${SVCNAME}.conf}
 
 get_service_config() {
+	[ -e "$CFGFILE" ] || return
+
 	awk '$1 == "'$1'" { s=$2 } END { print s }' "$CFGFILE"
 }
 






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-09-27 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-27 21:51 [gentoo-commits] gentoo-x86 commit in net-misc/quagga/files: quagga-services.init.2 Diego Petteno (flameeyes)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox