3 Commits

Author SHA1 Message Date
52802ae6c5 feat(dbus): Add support for configuring 'revpi-con-can' feature
Introduce the `configure_con_can` function to manage enabling,
disabling, status checking, and availability of the 'revpi-con-can'
feature. Update the `AVAILABLE_FEATURES` dictionary to integrate
'revpi-con-can' as a configurable feature.
2025-04-20 19:19:13 +02:00
f22fbdf814 feat(dbus): Add support for configuring the external antenna
Introduce the `configure_external_antenna` function to manage external
antenna settings, including enable, disable, and status checks. Update
the feature configuration in `interface_config` to include this
functionality. This enhances WiFi-related configuration options.
2025-04-20 19:18:41 +02:00
bbf1bcc4b5 feat(dbus): Add ConfigTxt class for managing config.txt file
Introduced the ConfigTxt class to handle parsing, editing, and saving of
config.txt files. This includes methods for adding, clearing, and
retrieving configuration values, as well as handling dtoverlays and
dtparams. Enhanced system configuration capabilities by providing
structured support for config file operations.
2025-04-20 19:17:41 +02:00

View File

@@ -19,8 +19,6 @@ log = getLogger(__name__)
ConfigVariable = namedtuple("ConfigVariable", ["name", "value", "line_index"])
CONFIG_TXT_LOCATIONS = ("/boot/firmware/config.txt", "/boot/config.txt")
class ComputeModuleTypes(IntEnum):
UNKNOWN = 0
@@ -78,7 +76,7 @@ class RevPiConfig:
except ValueError:
pass
# Detect WiFi on CM module
# Detect WiFi
could_have_wifi = self._cm_type in (ComputeModuleTypes.CM4, ComputeModuleTypes.CM5)
if could_have_wifi:
lst_grep = grep("DRIVER=brcmfmac", "/sys/class/ieee80211/phy0/device/uevent")
@@ -108,7 +106,7 @@ class ConfigTxt:
def __init__(self):
self._config_txt_path = ""
for path in CONFIG_TXT_LOCATIONS:
for path in ("/boot/firmware/config.txt", "/boot/config.txt"):
if exists(path):
self._config_txt_path = path
break