Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow disabling modprobe with REMUX_DISABLE_WIFI_RELOAD #227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/remux/launcher.cpy
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Loading