YaST2 Developers Documentation: Network configuration

Network configuration

include/network/runtime.ycp
Runtime routines

This module has an unstable interface.

Imports

  • Arch
  • Desktop
  • NetworkDevices
  • Package
  • Service

Local Functions

local RunSuSEconfig () -> boolean

Run SuSEconfig

Return value:
true if success
local RunSuSEconfigModule (string modul) -> boolean

Run one SuSEconfig module

Parameters:
modul SuSEconfig module
Return value:
true if success
local HasLink () -> boolean

Check if running on a local system or over a network

Return value:
true if link found
See
ethtool(8)
Info:

Are there interfaces controlled by smpppd and kinternet? They are the ones with USERCONTROL=yes (#44303)

Return value:
true/false / boolean HaveDialupLikeInterfaces () { list devs = NetworkDevices::Locate ("USERCONTROL", "yes"); y2milestone ("user controlled interfaces: %1", devs); if (devs != []) { return true; } devs = ISDN::Locate ("USERCONTROL", "yes"); y2milestone ("user controlled ISDN interfaces: %1", devs); return devs != [];
Info:

Do we need to start KInternet? / define boolean needKInternet(){ /* Any dialup devices? * / if (!HaveDialupLikeInterfaces ()) { y2milestone ("No dialup-like interfaces"); return false; }