Changeset 10669


Ignore:
Timestamp:
Jan 27, 2005, 5:44:47 AM (16 years ago)
Author:
rshaw
Message:

Fixed file permissions on StartupItem script (0755) and plist (0644).
Fixed path to rc.common file (should be system /etc, not ${prefix}/etc)

File:
1 edited

Legend:

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

    r10494 r10669  
    22# portstartupitem.tcl
    33#
    4 # $Id: portstartupitem.tcl,v 1.2 2005/01/20 02:17:42 landonf Exp $
     4# $Id: portstartupitem.tcl,v 1.3 2005/01/27 05:44:47 rshaw Exp $
    55#
    66# Copyright (c) 2004 Markus W. Weissman <mww@opendarwin.org>,
     
    109109        set itemdir ${prefix}/etc/StartupItems/${startupitem.name}
    110110        file mkdir ${destroot}${itemdir}
    111         set item [open "${destroot}${itemdir}/${startupitem.name}" a]
     111        set item [open "${destroot}${itemdir}/${startupitem.name}" w 0755]
    112112        puts ${item} "#!/bin/sh"
    113113        puts ${item} "#\n# DarwinPorts generated StartupItem\n#\n"
    114         puts ${item} ". ${prefix}/etc/rc.common\n"
     114        puts ${item} ". /etc/rc.common\n"
    115115        puts ${item} "StartService ()\n\{"
    116116        puts ${item} "\tif \[ \"\$\{${itemname}:=-NO-\}\" = \"-YES-\" \]; then"
     
    129129        puts ${item} "RunService \"\$1\""
    130130        close ${item}
    131         set para [open "${destroot}${itemdir}/StartupParameters.plist" a]
     131        set para [open "${destroot}${itemdir}/StartupParameters.plist" w 0644]
    132132        puts ${para} "\{"
    133133        puts ${para} "\tDescription\t= \"${startupitem.name}\";"
Note: See TracChangeset for help on using the changeset viewer.