Ignore:
Timestamp:
Dec 28, 2008, 2:56:22 AM (15 years ago)
Author:
price
Message:

document config-init.sh better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-base/files/lib/init/config-init.sh

    r1928 r1929  
    11# For a package which only configures another, "parent" package.
    22#
    3 # Global variable PARENTPACKAGE names parent; unset for no parent,
    4 # array for (zero or one or) many parents.
     3# Usage:
     4#   PACKAGE=short-name
     5#   GEN_FILES=(files to generate)
     6#   PARENTPACKAGE=(parent-package another-parent-package)
     7#   . /lib/init/config-init.sh
     8#   config_init "$1"
    59#
    6 # Global variable PACKAGE names this package, for log message.
     10# PACKAGE       - name to appear in log message
     11# GEN_FILES     - files to be generated with gen-files.sh
     12# PARENTPACKAGE - packages to receive start, etc, commands passed through
    713#
    8 # If BASH_VERSION is null or unset, accepts only one parent in
    9 # PARENTPACKAGE, or empty for zero.
     14# Global variables GEN_FILES, PARENTPACKAGE may be unset for zero
     15# values, or scalars for one.  If run under sh, they cannot be arrays.
    1016
    1117. /lib/init/vars.sh
Note: See TracChangeset for help on using the changeset viewer.