YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Global Functions

Local Variables

Info:

File: modules/Mode.ycp Module: yast2 Summary: Installation mode Authors: Klaus Kaempf Flags: Stable

$Id$

local _mode -> string

Current mode

local _test -> string

Current testing mode

local test_autochecked -> boolean

We do one automatic check whether _test should be set to testsuite.

local _ui -> string

Current UI mode

global Initialize () -> void

initialize everything from command-line of y2base

global mode () -> string

Returns the current mode name. It's one of "installation", "normal", "update", "repair", "autoinstallation", "autoinst_config"

global ui () -> string

Returns the current UI mode. It's one of "commandline", "dialog", "none"

global installation () -> boolean

we're doing a fresh installation

global live_installation () -> boolean

we're doing a fresh installation from live CD/DVD

global update () -> boolean

we're doing an update

global normal () -> boolean

normal, running system

global repair () -> boolean

start repair module

global autoinst () -> boolean

doing auto-installation

global autoupgrade () -> boolean

doing auto-upgrade

global config () -> boolean

configuration for auto-installation, only in running system

global test () -> boolean

Just testing. See installation/Test-Scripts/doit*

global screen_shot () -> boolean

dump screens to /tmp. Implies demo . See installation/Test-Scripts/yast2-screen-shots*

global testsuite () -> boolean

Returns whether running in testsuite.

global commandline () -> boolean

we're running in command line interface

Return value:
true if command-line is running