As my wi-fi driver is doing a bit weird I need to add codes into the terminal everytime I restart my PC to use Wi-Fi.

I get that opening the terminal and typing in two lines of code isn't that much work, but I was kind of curious if there was a way to just be able to click on a file, and that the file would paste the codes in the terminal and run them automatically.


The codes:

sudo modprobe mt7630e
sudo modprobe mt76xx
  • Add your codes in ~/.profile ..then you don't have to do anything, they will be automatically executed upon boot.. – heemayl May 5 '15 at 13:45
  • What are the two commands you have to type in? – zhongfu May 5 '15 at 13:46
  • Heemayl thanks for your answer, I get permission denied, even though i'm root – ImmaRushTHisAndRegretNameLater May 5 '15 at 13:48
  • The codes: sudo modprobe mt7630e and sudo modprobe mt76xx thanks for your comment – ImmaRushTHisAndRegretNameLater May 5 '15 at 13:49
  • Probably you should have to edit your /etc/rc.local file to issue this commands at boot – user3417815 May 5 '15 at 13:56

From the commands you have provided, it is clear that you are trying to load two modules into the kernel in the runtime after just starting your computer.

This can be done easily by the /etc/modules file. This file is the designated place to put the modules that will be loaded into the kernel upon system boot every time.

In your case, to load the mentioned two modules use the following command:

printf "mt7630e\nmt76xx" | sudo tee -a /etc/modules

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.