Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble Configuring Wireless Hardware Settings [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
bilbod
n00b
n00b


Joined: 29 Oct 2004
Posts: 47

PostPosted: Thu Nov 29, 2012 5:12 pm    Post subject: Trouble Configuring Wireless Hardware Settings [Solved] Reply with quote

I am trying to set the retry variable to 30 in the /etc/conf.d/net file like this:

Code:
iwconfig_wlan0="retry 30"

It does not work.

Running this from the command line does work:

Code:
iwconfig wlan0 retry 30

What is the correct syntax to use to get it set to the value I want automatically?


Last edited by bilbod on Sat Dec 01, 2012 2:01 am; edited 1 time in total
Back to top
View user's profile Send private message
bilbod
n00b
n00b


Joined: 29 Oct 2004
Posts: 47

PostPosted: Sat Dec 01, 2012 2:00 am    Post subject: Reply with quote

Apparently the retry command has to be issued after the interface is up so I added a postup function to the config file and it works.

Code:
postup() {
   # This function could be used, for example, to register with a
   # dynamic DNS service.  Another possibility would be to
   # send/receive mail once the interface is brought up.
   if [ "${IFACE}" == "wlan0" ]; then
       iwconfig wlan0 retry 30
   fi
   return 0
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum