Configuration of TftpServer |
modules/TftpServer.ycp |
Data for configuration of TftpServer, input and output functions. | |
|
|
This module has an unstable interface. |
Representation of the configuration of TftpServer.
Input and output routines.
Imports
Global VariablesGlobal Functions
Local Variables |
Any settings modified? As we have only a single dialog which handles it by itself, it is used only by autoinst cloning.
Returns true if the settings were modified
- Return value:
-
settings were modified
Function sets an internal variable indicating that any settings were modified to "true". Used for autoinst cloning.
Required packages for operation
Start tftpd via xinetd?
Image directory, last argument of in.tftpd
Other arguments to in.tftpd, ie. not including -s or /dir
Detect who is serving tftp: Inetd may be running, it is the default. But it is ok unless it is serving tftp. So we detect who is serving tftp and warn if it is not xinetd or in.tftpd. If nonempty, the user is notified and the module gives up.
Extract the directory and other arguments. global to make testing easier
- Parameters:
-
server_args server_args from xinetd.conf
Read all tftp-server settings
- Return value:
-
true on success
Return error string to be used in WriteOnly (for autoinst) or before the edit dialog.
- Return value:
-
error string
Write all tftp-server settings without actually (re)starting the service
- Return value:
-
true on success
Write all tftp-server settings
- Return value:
-
true on success
Set module data, without validity checking
- Parameters:
-
settings may be empty for reset
Get all tftp-server settings from the first parameter (For use by autoinstallation.)
- Parameters:
-
settings The YCP structure to be imported.
- Return value:
-
True on success
Dump the tftp-server settings to a single map (For use by autoinstallation.)
- Return value:
-
Dumped settings (later acceptable by Import ())
- Return value:
-
Html formatted configuration summary
Return needed packages and packages to be removed during autoinstallation.
- Return value:
-
of lists.