
functions
files
intro
|
|
Network configuration |
modules/Detection.ycp |
Network detection |
|
|
Detects network settings, using dhcp or sniffing network traffic
Detection process:
Initial stage:
- hardware detection
- load kernel modules (if not already active *1)
- set up interface (if not already set up *2)
- run detection
Final stage:
- read detection data
- shut down interfaces (if set up before, see *2)
- remove kernel modules (if loaded before, see *1)
Used software:
- dhcpcd(8)
- netprobe(8) (currently not, originally by Caldera, license unclear)
Usage:
- Detection::Start() somewhere at the start of installation
Later at the module:
- if(Detection::running) Detection::Stop();
- string gw = Detection::result["GATEWAY"]:"";
Imports
Includes
Global Variables
Global Functions
Local Functions
|
|
|
Detection result
(in dhcpcd-interface.info format)
global running -> boolean
|
|
True, if detection is running
local StartEthInterface () -> boolean
|
|
Set up the first eth interface, if not already running
- Return value:
local StopEthInterface () -> boolean
|
|
Shut down the eth interface, previously set up by StartEthInterface
- Return value:
local StartDetection () -> boolean
|
|
Start detection
- Return value:
local StopDetection () -> boolean
|
|
Finish detection
- Return value:
global Start () -> boolean
|
|
Start the detection
- Return value:
global Stop () -> boolean
|
|
Stop the detection
- Return value:
|