YaST2 Developers Documentation: Configuration of TftpServer



functions
files
intro

Configuration of TftpServer

modules/TftpServer.ycp
Data for configuration of TftpServer, input and output functions.
Representation of the configuration of TftpServer. Input and output routines.

Imports

  • Report
  • Runlevel
  • Summary

Global Variables

Global Functions

global required_packages -> list

Required packages for operation

global start -> boolean

Start tftpd via xinetd?

global directory -> string

Image directory, last argument of in.tftpd

global other_args -> string

Other arguments to in.tftpd, ie. not including -s or /dir

global foreign_servers -> string

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.

global ParseServerArgs (string server_args) -> void

Extract the directory and other arguments. global to make testing easier

Parameters:
server_args server_args from xinetd.conf

global Read () -> boolean

Read all tftp-server settings

Return value:
true on success

global ForeignServersError () -> string

Return error string to be used in WriteOnly (for autoinst) or before the edit dialog.

Return value:
error string

global WriteOnly () -> boolean

Write all tftp-server settings without actually (re)starting the service

Return value:
true on success

global Write () -> boolean

Write all tftp-server settings

Return value:
true on success

global Set (map settings) -> void

Set module data, without validity checking

Parameters:
settings may be empty for reset

global Import (map settings) -> boolean

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

global Export () -> map

Dump the tftp-server settings to a single map (For use by autoinstallation.)

Return value:
Dumped settings (later acceptable by Import ())

global Summary () -> string

Return value:
Html formatted configuration summary

global AutoPackages () -> map

Return needed packages and packages to be removed during autoinstallation.

Return value:
of lists.

YaST2 Developers Documentation