Skip Navigation

[Question] I need a comand to enable wifi after reboot each time. How i fix it? - (Macbook pro 13 2011) [Fedora 40]

I've installed fedora 40 on my jurassic Macbook 13 2011 and so far i'm in love with it. The only issue was the wifi. I've checked different posts and articles and in the end i've find this [https://darryldias.me/2020/linux-wifi-drivers-for-2012-macbook-pro-offline-method/] which worked... up to a point. When i turn off or restart the machine i have to use the comand "sudo modprobe -v b43" to enable the wifi each time.

Any idea?

1
1 comments
  • EDIT: The best way to do this is just to make your module changes permanent. Just run the following command and the module will always be loaded:

    echo b43 | sudo tee /etc/modules-load.d/wifi-b43.conf
    

    Then just reboot and try it out.

    By the way, this community is kinda dead. You may want to post to the Linux Lemmy community in the future instead because there's a low chance of getting an answer here.

    OLD ANSWER

    This just runs the command at boot. You can use this basic structure to run any command you want at boot so long as you modify the Before target. systemd services are really helpful, so I'll keep this answer here in case you have some other use for something similar.

    You can create a service for this. Just make the following service file with your favorite text editor:

    wifi-on-boot.service

    [Unit]
    Before=network-pre.target
    
    [Service]
    Type=oneshot
    ExecStart=/usr/sbin/modprobe b43
    
    [Install]
    WantedBy=multi-user.target
    

    Open a terminal in the folder you created the file, and then:

    sudo cp wifi-on-boot.service /etc/systemd/system
    sudo systemctl enable wifi-on-boot.service
    

    It will now run at boot before your network comes up! You can delete the file you made in your home folder or wherever (just not the one in /etc/systemd/system/) to clean up if you want.