Configuration of inetd |
include/inetd/dialogs.ycp |
Dialogs definitions | |
|
|
This module has an unstable interface. |
Imports
Includes
Local VariablesLocal Functions |
local users and groups are stored here We create both lists only once - during first EditOrCreateServiceDlg() call.
see local_users.
This map is used for (re)selecting table items. This is new inetd GUI improvement! :o) Indexes table items, ie. not counting deleted services.
See iid_to_index. This is reverse to iid_to_index. Indexes table items, ie. not counting deleted services.
used for conversion netd_conf to table's format
This function regenerates index_to_iid and iid_to_index maps
This function extracts provided packages (from Inetd::default_conf_*) for selected service. Matches by (service, protocol,"program (package)")
- Parameters:
-
service_info Contains informations about selected service
- Return value:
-
Provided packages
Map of the just installed service, this service changes it's name from NI{int} to {int}:/etc/{service_conf} This map is used to find the currently selected service using the names and options of the service. Related to bug 172449. BTW: This module should have been rewritten ages ago! No more hacking, please.
Ensure that a package is installed. Show dialog with packages names provided non-installed service.
- Parameters:
-
selected_item iid from table
- Return value:
-
Status of operation: `next: nothing to do, it is installed already `auto: will be installed at autoinstall time `installed: successfully installed `none: cancelled or install error
In table_data, find the first item whose id is selected_item
- Parameters:
-
selected_item iid of selected item
- Return value:
-
Service name or nil
Checks that the package should be installed. In normal mode, only for xinetd, for services thast are NI. In auto mode, check IsInstalled. otherwise screams nil.
- Parameters:
-
id a ui table item
- Return value:
-
the same item or nil
This is main inetd module dialog.
- Return value:
-
dialog result
Edit or create an entry
- Parameters:
-
title title specifies the dialog name line line specifies new entry data-template
- Return value:
-
nil on Cancel or new entry (map) for netd_conf on OK: