92. HWConfig

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

92.1. Authors

  • Ladislav Slezak <lslezak@suse.cz>

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

    92.3. Global Functions

    92.3.1. ConfigFiles

    Return list of all available hardware configuration files

    Return value

    • list<string> - found files

    92.3.2. Flush

    Flush - write the changes to files

    Return value

    • boolean - true on success

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

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

    92.3.5. RemoveConfig

    Remove configuration file from system

    Function parameters

    • string file

    Return value

    • boolean - true on success

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

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

    92.3.8. Values

    Read all values from the file

    Function parameters

    • string file

    Return value

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

    92.3.9. Variables

    Return list of all available variable in the configuration file

    Function parameters

    • string file

    Return value

    • list<string> - found variables

    92.4. Global Variables

    92.5. Module Requirements

    none