Skip to content
Permalink
Browse files

also check if /etc/rc.common is readable before including it

git-svn-id: https://svn.macports.org/repository/macports/trunk/base@14675 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Markus W. Weißmann
Markus W. Weißmann committed Oct 17, 2005
1 parent 81d6fee commit 3e6475d86f9c8dc386def928d0aed587c79ea0db
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/port1.0/portstartupitem.tcl
@@ -1,7 +1,7 @@
# et:ts=4
# portstartupitem.tcl
#
# $Id: portstartupitem.tcl,v 1.24 2005/10/12 12:56:26 jberry Exp $
# $Id: portstartupitem.tcl,v 1.25 2005/10/17 18:42:07 mww Exp $
#
# Copyright (c) 2004, 2005 Markus W. Weissman <mww@opendarwin.org>,
# Copyright (c) 2005 Robert Shaw <rshaw@opendarwin.org>,
@@ -202,10 +202,10 @@ proc startupitem_create_darwin_systemstarter {args} {
# DarwinPorts generated StartupItem
#

# Source the utilities package and the darwinports config file
. /etc/rc.common
}
puts ${item} "prefix=$prefix"
# Source the utilities package and the darwinports config file
puts ${item} {[ -r "/etc/rc.common" ] && . "/etc/rc.common"}
puts ${item} {[ -r "${prefix}/etc/rc.conf" ] && . "${prefix}/etc/rc.conf"}

# Emit the Configuration Section

0 comments on commit 3e6475d

Please sign in to comment.
You can’t perform that action at this time.