List of Global Functions
CustomSysconfigRead - Try to read value from sysconfig file and return the result if successful. Function reads from arbitrary sysconfig file, for which the agent doesn't exist: e.g. from different partition like /mnt/etc/sysconfig/file.
SplitOptions - MergeOptions Merges "opt1=val1 opt2=val2 ..." and $["opta":"vala", ..."] to $["opt1":"val1", "opt2":"val2", "opta":"vala", ...] as needed by modules.conf agent
SysconfigRead - SysconfigRead()
SysconfigWrite - SysconfigWrite()
List of Global Variables
Try to read value from sysconfig file and return the result if successful. Function reads from arbitrary sysconfig file, for which the agent doesn't exist: e.g. from different partition like /mnt/etc/sysconfig/file.
Function parameters
string key
string defval
string location
Return value
string - Success --> Result of SCR::Read<br> Failure --> Default value
Example 25.
Misc::CustomSysconfigRead ("INSTALLED_LANGUAGES", "", Installation::destdir + "/etc/sysconfig/language");
Function parameters
string first
string second
Return value
any - content of file try to read first file, if it doesn't exist, read second files must reside below /usr/lib/YaST2 files must have ycp syntax
MergeOptions Merges "opt1=val1 opt2=val2 ..." and $["opta":"vala", ..."] to $["opt1":"val1", "opt2":"val2", "opta":"vala", ...] as needed by modules.conf agent
Function parameters
string options
map optmap
Return value
map - $["opt1":"val1", "opt2":"val2", ...]
SysconfigRead()
Function parameters
path sysconfig_path
string defaultv
Return value
string - Success --> Result of SCR::Read<br> Failure --> Default value
SysconfigWrite()
Function parameters
path level
list<list> values
Return value
boolean - false if SCR::Write reported error write list of sysyconfig entries via rcconfig agent
Function parameters
map hardware_entry
Return value
string - vendor and device name common function to extract 'name' of hardware