103. Internet

Internet connection and YOU during the installation

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

103.2. Global Functions

103.2.1. Connected

Test if the interface is connected

Return value

  • boolean - true if connected

103.2.2. GetDevices

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

Return value

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

103.2.3. Reset

Reset values.

Return value

  • void

103.2.4. SetDemand

Set dial-on-demand

Function parameters

  • boolean demand

Return value

  • void

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

103.2.6. Start

Start the fastest interface

Function parameters

  • string log

Return value

  • boolean - true if successful started

103.2.7. Status

Status of the fastest interface

Return value

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

103.2.8. Stop

Stop the fastest interface

Function parameters

  • string log

Return value

  • boolean - true if successful stopped

103.3. Global Variables

103.3.1. device

Values for selected connection.

103.3.2. do_test

Flag to remember if user wants to run internet test

103.3.3. do_you

Flag to remember if you should be started

103.3.4. suse_register

Flag to remember if user wants to run suse register

103.4. Module Requirements

103.4.1. Module Imports

  • Map
  • NetworkService
  • Service

103.4.2. Module Includes