From ce2c3493fbeef9a7ac93227ca1d8e96a38f4ccdc Mon Sep 17 00:00:00 2001 From: Nathaniel van Diepen Date: Fri, 21 Jun 2024 17:50:06 -0600 Subject: [PATCH] Allow disabling modprobe with REMUX_DISABLE_WIFI_RELOAD --- src/remux/launcher.cpy | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/remux/launcher.cpy b/src/remux/launcher.cpy index f6c52ee..37c0df9 100644 --- a/src/remux/launcher.cpy +++ b/src/remux/launcher.cpy @@ -728,7 +728,8 @@ class App: public IApp: _ := system("systemctl suspend") sleep(1) - if system("lsmod | grep brcmfmac") == 0: + disable_wifi_reload := getenv("REMUX_DISABLE_WIFI_RELOAD") + if (disable_wifi_reload == NULL or strlen(disable_wifi_reload) == 0) and system("lsmod | grep brcmfmac") == 0: debug "RELOADING WIFI DRIVERS" _ = system("modprobe -r brcmfmac brcmutil") _ = system("modprobe brcmfmac brcmutil")