Changeset 14675 for trunk/base


Ignore:
Timestamp:
Oct 17, 2005, 6:42:07 PM (15 years ago)
Author:
mww
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/base/src/port1.0/portstartupitem.tcl

    r14577 r14675  
    22# portstartupitem.tcl
    33#
    4 # $Id: portstartupitem.tcl,v 1.24 2005/10/12 12:56:26 jberry Exp $
     4# $Id: portstartupitem.tcl,v 1.25 2005/10/17 18:42:07 mww Exp $
    55#
    66# Copyright (c) 2004, 2005 Markus W. Weissman <mww@opendarwin.org>,
     
    203203#
    204204
    205 # Source the utilities package and the darwinports config file
    206 . /etc/rc.common
    207205}
    208206        puts ${item} "prefix=$prefix"
     207        # Source the utilities package and the darwinports config file
     208        puts ${item} {[ -r "/etc/rc.common" ] && . "/etc/rc.common"}
    209209        puts ${item} {[ -r "${prefix}/etc/rc.conf" ] && . "${prefix}/etc/rc.conf"}
    210210
Note: See TracChangeset for help on using the changeset viewer.