79. HWConfig

Module for accessing hardware configuration files (/etc/sysconfig/hwcfg-*) Flags: Stable

79.1. Summary of Module Globals

List of Global Functions

  • ConfigFiles - Return list of all available hardware configuration files

  • Flush - Flush - write the changes to files

  • GetComment - Get comment of the variable from the config file

  • GetValue - Set comment of the variable in the config file

  • RemoveConfig - Remove configuration file from system

  • SetComment - Set comment of the variable in the config file

  • SetValue - Set value of the variable in the config file

  • Values - Read all values from the file

  • Variables - Return list of all available variable in the configuration file

List of Global Variables

    79.2. Global Functions

    79.2.1. ConfigFiles

    Return list of all available hardware configuration files

    Return value

    • list<string> - found files

    79.2.2. Flush

    Flush - write the changes to files

    Return value

    • boolean - true on success

    79.2.3. GetComment

    Get comment of the variable from the config file

    Function parameters

    • string file

    • string variable

    Return value

    • string - comment of the variable

    79.2.4. GetValue

    Set comment of the variable in the config file

    Function parameters

    • string file

    • string variable

    Return value

    • string - comment the new comment

    79.2.5. RemoveConfig

    Remove configuration file from system

    Function parameters

    • string file

    Return value

    • boolean - true on success

    79.2.6. SetComment

    Set comment of the variable in the config file

    Function parameters

    • string file

    • string variable

    • string comment

    Return value

    • boolean - true on success

    79.2.7. SetValue

    Set value of the variable in the config file

    Function parameters

    • string file

    • string variable

    • string value

    Return value

    • boolean - true on success

    79.2.8. Values

    Read all values from the file

    Function parameters

    • string file

    Return value

    • map<string,string> - map $[ "VARIABLE" : "value" ]

    79.2.9. Variables

    Return list of all available variable in the configuration file

    Function parameters

    • string file

    Return value

    • list<string> - found variables

    79.3. Global Variables

    79.4. Module Requirements

    none