Auto-Installation |
modules/AutoinstScripts.ycp |
Custom scripts | |
|
|
This module has an unstable interface. |
Imports
Includes
Global Functions
Local Functions |
global
SetModified ()
->
void
Function sets internal variable, which indicates, that any settings were modified, to "true"
global
GetModified ()
->
boolean
Functions which returns if the settings were modified
- Return value:
-
settings were modified
local
mergeScripts ()
->
list<map>
merge all types of scripts into one single list
- Return value:
-
merged list
local
AutoinstScripts ()
->
void
Constructor
global
Export ()
->
map<string, list>
Dump the settings to a map, for autoinstallation use.
global
Import (map s)
->
boolean
Get all the configuration from a map.
When called by autoinst_
- Parameters:
-
s
- Return value:
-
success
global
Summary ()
->
string
Return Summary
- Return value:
-
summary
global
deleteScript (string scriptName)
->
void
delete a script from a list
- Parameters:
-
scriptName
global
AddEditScript (string scriptName, string source, string interpreter, string type, boolean chrooted, boolean debug, boolean feedback, boolean network)
->
void
Add or edit a script
- Parameters:
-
scriptName script name source source of script interpreter interpreter to be used with script type type of script chrooted debug feedback network
global
typeString (string type)
->
string
return type of script as formatted string
- Parameters:
-
type
- Return value:
-
type as translated string
global
Write (string type, boolean special)
->
boolean
Execute pre scripts
- Parameters:
-
type special
- Return value:
-
true on success