116. Internet

Internet connection and YOU during the installation

116.1. Authors

  • Michal Svec <msvec@suse.cz>

  • Arvin Schnell <arvin@suse.de>

116.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

116.3. Global Functions

116.3.1. Connected

Test if the interface is connected

Return value

  • boolean - true if connected

116.3.2. GetDevices

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

Return value

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

116.3.3. Reset

Reset values.

Return value

  • void

116.3.4. SetDemand

Set dial-on-demand

Function parameters

  • boolean demand

Return value

  • void

116.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

116.3.6. Start

Start the fastest interface

Function parameters

  • string log

Return value

  • boolean - true if successful started

116.3.7. Status

Status of the fastest interface

Return value

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

116.3.8. Stop

Stop the fastest interface

Function parameters

  • string log

Return value

  • boolean - true if successful stopped

116.4. Global Variables

116.4.1. device

Values for selected connection.

116.4.2. do_test

Flag to remember if user wants to run internet test

116.4.3. do_you

Flag to remember if you should be started

116.4.4. suse_register

Flag to remember if user wants to run suse register

116.5. Module Requirements

116.5.1. Module Imports

  • Map
  • NetworkService
  • Service

116.5.2. Module Includes