novell-common |
modules/NovellUtilsLUM.ycp |
Novell utility routines | |
|
|
This module has an unstable interface. |
Function: ReplaceSubString(string text, string replace, string replacement)
- Parameters:
-
text replace replacement
Function: map GetAllStaticInterfaces()
returns a map of all network interfaces with static IP addresses
The returned map is structued as follows:
Function: global string GetIPAddr()
The original method is found above (GetIPAddrEth0) It was insufficient as it only returned the IP address associated with eth0
This updated function gets the IP address of the 1st interface with a static address
Function: MapIPAddrToDevice(string ip)
- Parameters:
-
ip
Typeful2Typeless (string ndsName)
- Parameters:
-
ndsName
Find a value in the Novell registry
- Parameters:
-
key to find in the registry.
- Return value:
-
registry value for key on success, nil string on failure or no value.
Validate password
- Parameters:
-
pw1 pw2
See if the specified product was installed during phase 1 of the install. This is how we determine if a product should show up in the proposal screen. The input parameter "selection_name" should match the name of the selection file for which information is required (e.g. novell-imanager, novell-ifolder2, X11, Linux_tools, etc.). The parameter "selection_name" is not case sensitive.
- Parameters:
-
selection_name
See if eDirectory is installed locally on this machine and is running.
Determine what the default and fallback IP addresses should be for a product.
- Parameters:
-
ldapIP
The following code was copied from inetd/src/routines.ycp It has been reformatted slightly to suit my tastes
CheckForInstalledSoftware()