84. HWConfig

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

84.1. Authors

  • Ladislav Slezak <lslezak@suse.cz>

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

    84.3. Global Functions

    84.3.1. ConfigFiles

    Return list of all available hardware configuration files

    Return value

    • list<string> - found files

    84.3.2. Flush

    Flush - write the changes to files

    Return value

    • boolean - true on success

    84.3.3. GetComment

    Get comment of the variable from the config file

    Function parameters

    • string file

    • string variable

    Return value

    • string - comment of the variable

    84.3.4. GetValue

    Set comment of the variable in the config file

    Function parameters

    • string file

    • string variable

    Return value

    • string - comment the new comment

    84.3.5. RemoveConfig

    Remove configuration file from system

    Function parameters

    • string file

    Return value

    • boolean - true on success

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

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

    84.3.8. Values

    Read all values from the file

    Function parameters

    • string file

    Return value

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

    84.3.9. Variables

    Return list of all available variable in the configuration file

    Function parameters

    • string file

    Return value

    • list<string> - found variables

    84.4. Global Variables

    84.5. Module Requirements

    none