18. AutoinstScripts

Custom scripts

18.1. Summary of Module Globals

List of Global Functions

  • AddEditScript - Add or edit a script

  • Export - Dump the settings to a map, for autoinstallation use.

  • GetModified - Functions which returns if the settings were modified

  • Import - Get all the configuration from a map. When called by autoinst_<module name> (preparing autoinstallation data) the map may be empty.

  • SetModified - Function sets internal variable, which indicates, that any settings were modified, to "true"

  • Summary - Return Summary

  • Write - Execute pre scripts

  • deleteScript - delete a script from a list

  • typeString - return type of script as formatted string

List of Global Variables

    18.2. Global Functions

    18.2.1. AddEditScript

    Add or edit a script

    Function parameters

    • string scriptName

    • string source

    • string interpreter

    • string type

    • boolean chrooted

    • boolean debug

    • boolean feedback

    • boolean network

    Return value

    • void

    18.2.2. Export

    Dump the settings to a map, for autoinstallation use.

    Return value

    • map<string, list>

    18.2.3. GetModified

    Functions which returns if the settings were modified

    Return value

    • boolean - settings were modified

    18.2.4. Import

    Get all the configuration from a map. When called by autoinst_<module name> (preparing autoinstallation data) the map may be empty.

    Function parameters

    • map s

    Return value

    • boolean - success

    18.2.5. SetModified

    Function sets internal variable, which indicates, that any settings were modified, to "true"

    Return value

    • void

    18.2.6. Summary

    Return Summary

    Return value

    • string - summary

    18.2.7. Write

    Execute pre scripts

    Function parameters

    • string type

    • boolean special

    Return value

    • boolean - true on success

    18.2.8. deleteScript

    delete a script from a list

    Function parameters

    • string scriptName

    Return value

    • void

    18.2.9. typeString

    return type of script as formatted string

    Function parameters

    • string type

    Return value

    • string - type as translated string

    18.3. Global Variables

    18.4. Module Requirements

    18.4.1. Module Imports

    • AutoinstConfig
    • Mode
    • Popup
    • Service
    • Summary
    • URL

    18.4.2. Module Includes

    • autoinstall/io.ycp