View previous topic :: View next topic |
Author |
Message |
bilbod n00b
Joined: 29 Oct 2004 Posts: 47
|
Posted: Thu Nov 29, 2012 5:12 pm Post subject: Trouble Configuring Wireless Hardware Settings [Solved] |
|
|
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 |
|
|
bilbod n00b
Joined: 29 Oct 2004 Posts: 47
|
Posted: Sat Dec 01, 2012 2:00 am Post subject: |
|
|
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 |
|
|
|