Changeset 14539 for trunk/base


Ignore:
Timestamp:
Oct 11, 2005, 4:05:49 AM (15 years ago)
Author:
jberry
Message:

Set prefix variable for use by startupitem scripts.

File:
1 edited

Legend:

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

    r14505 r14539  
    22# portstartupitem.tcl
    33#
    4 # $Id: portstartupitem.tcl,v 1.20 2005/10/09 15:00:43 mww Exp $
     4# $Id: portstartupitem.tcl,v 1.21 2005/10/11 04:05:49 jberry Exp $
    55#
    66# Copyright (c) 2004, 2005 Markus W. Weissman <mww@opendarwin.org>,
     
    205205# Source the utilities package and the darwinports config file
    206206. /etc/rc.common
    207 if test -r ${prefix}/etc/rc.conf; then
    208   . ${prefix}/etc/rc.conf
    209 fi
    210 }
     207}
     208        puts ${item} "prefix=$prefix"
     209        puts ${item} {[ -r "${prefix}/etc/rc.conf" ] && . "${prefix}/etc/rc.conf"}
    211210
    212211        # Emit the Configuration Section
     
    439438                puts ${item} "# Init"
    440439                puts ${item} "#"
     440                puts ${item} "prefix=$prefix"
    441441                foreach line ${startupitem.init}        { puts ${item} ${line} }
    442442                puts ${item} ""
Note: See TracChangeset for help on using the changeset viewer.