Module: config

This module is used to deal with all config files:

  • /etc/linuxmuster-linuxclient7/network.conf

Members

linuxmusterLinuxclient7.config.deleteNetworkConfig()[source]

Delete the network configuration file.

Returns:

True or False

Return type:

bool

linuxmusterLinuxclient7.config.network()[source]

Get the network configuration in /etc/linuxmuster-linuxclient7/network.conf

Returns:

Tuple (success, dict of keys)

Return type:

tuple

linuxmusterLinuxclient7.config.shares()[source]

Get the shares configuration in /etc/linuxmuster-linuxclient7/config.yml

Returns:

Tuple (success, dict of keys)

Return type:

tuple

linuxmusterLinuxclient7.config.upgrade()[source]

Upgrade the format of the network configuration in /etc/linuxmuster-linuxclient7/network.conf This is done automatically on package upgrades.

Returns:

True or False

Return type:

bool

linuxmusterLinuxclient7.config.writeNetworkConfig(newNetworkConfig)[source]

Write the network configuration in /etc/linuxmuster-linuxclient7/config.yml. Preserves other configurations.

Parameters:

newNetworkConfig (dict) – The new config

Returns:

True or False

Return type:

bool