25. AutoinstScripts

Custom scripts

25.1. Authors

  • Anas Nashif <nashif@suse.de>

25.2. 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

    25.3. Global Functions

    25.3.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

    25.3.2. Export

    Dump the settings to a map, for autoinstallation use.

    Return value

    • map<string, list>

    25.3.3. GetModified

    Functions which returns if the settings were modified

    Return value

    • boolean - settings were modified

    25.3.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

    25.3.5. SetModified

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

    Return value

    • void

    25.3.6. Summary

    Return Summary

    Return value

    • string - summary

    25.3.7. Write

    Execute pre scripts

    Function parameters

    • string type

    • boolean special

    Return value

    • boolean - true on success

    25.3.8. deleteScript

    delete a script from a list

    Function parameters

    • string scriptName

    Return value

    • void

    25.3.9. typeString

    return type of script as formatted string

    Function parameters

    • string type

    Return value

    • string - type as translated string

    25.4. Global Variables

    25.5. Module Requirements

    25.5.1. Module Imports

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

    25.5.2. Module Includes

    • autoinstall/io.ycp