106. Internet

Internet connection and YOU during the installation

106.1. Authors

  • Michal Svec <msvec@suse.cz>

  • Arvin Schnell <arvin@suse.de>

106.2. Summary of Module Globals

List of Global Functions

  • Connected - Test if the interface is connected

  • GetDevices - Used if NetworkInterfaces cannot find anything (usually because NM runs) Calls ip

  • Reset - Reset values.

  • SetDemand - Set dial-on-demand

  • ShutdownAllLocalDHCPClients - DANGEROUS function. Searches for all standard PID files of dhcpcd, then kills all dhcpcds running (first SIGHUP, then SIGKILL). Works via WFM (only for local dhcpcd).

  • Start - Start the fastest interface

  • Status - Status of the fastest interface

  • Stop - Stop the fastest interface

List of Global Variables

  • device - Values for selected connection.

  • do_test - Flag to remember if user wants to run internet test

  • do_you - Flag to remember if you should be started

  • suse_register - Flag to remember if user wants to run suse register

106.3. Global Functions

106.3.1. Connected

Test if the interface is connected

Return value

  • boolean - true if connected

106.3.2. GetDevices

Used if NetworkInterfaces cannot find anything (usually because NM runs) Calls ip

Return value

  • list<string> - eg. ["eth0", "eth1"]

106.3.3. Reset

Reset values.

Return value

  • void

106.3.4. SetDemand

Set dial-on-demand

Function parameters

  • boolean demand

Return value

  • void

106.3.5. ShutdownAllLocalDHCPClients

DANGEROUS function. Searches for all standard PID files of dhcpcd, then kills all dhcpcds running (first SIGHUP, then SIGKILL). Works via WFM (only for local dhcpcd).

Return value

  • boolean

106.3.6. Start

Start the fastest interface

Function parameters

  • string log

Return value

  • boolean - true if successful started

106.3.7. Status

Status of the fastest interface

Return value

  • boolean - true if interface is up (which is not equal to connected)

106.3.8. Stop

Stop the fastest interface

Function parameters

  • string log

Return value

  • boolean - true if successful stopped

106.4. Global Variables

106.4.1. device

Values for selected connection.

106.4.2. do_test

Flag to remember if user wants to run internet test

106.4.3. do_you

Flag to remember if you should be started

106.4.4. suse_register

Flag to remember if user wants to run suse register

106.5. Module Requirements

106.5.1. Module Imports

  • Map
  • NetworkService
  • Service

106.5.2. Module Includes