Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have finally managed to find a solution to make my wifi stable in ubuntu 10.10. I have had problems with my ASUS ul30vt and the Atheros AR9285 but by installing the latest compat-wireless from yesterday my internet is finally stable.

I seriously thought of installing win7 again. But one minor problem i have is that the wifi is not turned on automatically from startup so everytime i startup i have to go to terminal and sudo modprobe ath9k and then the wireless turns on. I have tried to make that command in startup applications but that does not work. Can i make a script or something that will turn it on from startup, or is there an other simple solution?

share|improve this question

3 Answers 3

up vote 6 down vote accepted

/etc/rc.local is a silly place to put it IMO.

Whack ath9k on the end of /etc/modules (the file that's supposed to handle which modules are also added by default)

share|improve this answer
1  
There we had the problem. Some other module (ath9k_htc) was set to start... –  dhojgaard Nov 18 '10 at 11:16

You commented ath9k_htc was being loaded instead of ath9k. Maybe you should blacklist ath9k_htc in /etc/modprobe.d/blacklist.conf. ath9k will probably be loaded instead.

share|improve this answer

just add your commands to /etc/rc.local file. This script is executed at the end of each multiuser runlevel. Make sure that the script will "exit 0" on success or any other value on error.

In your case you could do it like this:

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
modprobe ath9k
if [ $? == 0 ]
then
exit 0
else
exit 1
fi
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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