Skip to content

Commit ce2c349

Browse files
authored
Allow disabling modprobe with REMUX_DISABLE_WIFI_RELOAD
1 parent 3197799 commit ce2c349

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/remux/launcher.cpy

+2-1
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,8 @@ class App: public IApp:
728728
_ := system("systemctl suspend")
729729
sleep(1)
730730

731-
if system("lsmod | grep brcmfmac") == 0:
731+
disable_wifi_reload := getenv("REMUX_DISABLE_WIFI_RELOAD")
732+
if (disable_wifi_reload == NULL or strlen(disable_wifi_reload) == 0) and system("lsmod | grep brcmfmac") == 0:
732733
debug "RELOADING WIFI DRIVERS"
733734
_ = system("modprobe -r brcmfmac brcmutil")
734735
_ = system("modprobe brcmfmac brcmutil")

0 commit comments

Comments
 (0)