Compare commits
3 Commits
1c52859fb4
...
52802ae6c5
| Author | SHA1 | Date | |
|---|---|---|---|
| 52802ae6c5 | |||
| f22fbdf814 | |||
| bbf1bcc4b5 |
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user