
functions
files
intro
|
|
Network configuration |
include/network/hardware.ycp |
Hardware routines |
|
|
All hardware settings are stored in a global variable Hardware.
If you want to add a new HW type, you have to do the following steps:
- add the type to ReadHardware
- add the type to SelectHardware
- add the type to ControllerType
Imports
Local Functions
|
|
|
local DeviceName (map hwdevice) -> string
|
|
Extract the device 'name'
- Parameters:
- Return value:
|
name consisting of vendor and device name |
local ControllerType (map hwdevice) -> string
|
|
Simple convertor from subclass to controller type.
- Parameters:
hwdevice |
map with card info containing "subclass" |
- Return value:
- Example:
-
ControllerType() -> "eth" |
local ReadHardware (string hwtype) -> list<map>
|
|
Read HW information
- Parameters:
hwtype |
type of devices to read (netcard|modem|isdn) |
- Return value:
local SelectHardware (list Hardware, integer which) -> map
|
|
Select the given hardware item or clean up structures (item == nil)
- Parameters:
Hardware |
|
which |
item to be chosen |
|