Script Index


/var/lib/sorcery/modules/libinitd

Installation steps performed by this script:

pre install:
  • Determine if the script is a facility provider, if it is then ask the user whether it should be the default provider. install: post install:
  • When the spell has been installed successfully then change the /etc/sysconfig/facilities-file if the user wanted the script to be a default provider.
  • Contributors

    Robert Helgesson

    Synopsis

    Functions for automatic init-script installation.


    function _init_make_backup()

    Parameters:

    Description

    Makes a backup of "old file" if it differs from "new file"


    function _init_get_conf_files()

    Parameters:

    Stdout

    filelist

    Description

    Extracts the files in /etc/sysconfig which are sourced by the script and prints them to stdout separated by newlines.


    function _init_merge_config_file()

    Parameters:

    Description

    Inserts new options from the new file into the old, existing, file


    function _init_install_conf_files()

    Parameters:

    Description

    Installs or merges a list of init-script configuration-files.


    function init_prepare_install()

    Parameters:

    Description

    Prepares installation of an init-script. Creates the variable $INITPROVIDES which contains facility provided by the script (if any)


    function init_install()

    Parameters:

    Description

    ChangeLog bashdoc.sh flow.sh generate-smgl-docs.sh generate_tarball.sh src2html.sh version Makes a backup of an existing script. ChangeLog bashdoc.sh flow.sh generate-smgl-docs.sh generate_tarball.sh src2html.sh version Installs the new script into the correct runlevel. ChangeLog bashdoc.sh flow.sh generate-smgl-docs.sh generate_tarball.sh src2html.sh version Installs any config file used by the script.


    function init_post_install()

    Parameters:

    Description

    Does cleanup if necessary. Must be run _after_ installwatch has stopped.