Module for accessing hardware configuration files (/etc/sysconfig/hwcfg-*) Flags: Stable
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
Return list of all available hardware configuration files
Return value
list<string> - found files
Get comment of the variable from the config file
Function parameters
string file
string variable
Return value
string - comment of the variable
Set comment of the variable in the config file
Function parameters
string file
string variable
Return value
string - comment the new comment
Remove configuration file from system
Function parameters
string file
Return value
boolean - true on success
Set comment of the variable in the config file
Function parameters
string file
string variable
string comment
Return value
boolean - true on success
Set value of the variable in the config file
Function parameters
string file
string variable
string value
Return value
boolean - true on success
Read all values from the file
Function parameters
string file
Return value
map<string,string> - map $[ "VARIABLE" : "value" ]