Keeping the wireless connected.
Posted
by
casr
on Super User
See other posts from Super User
or by casr
Published on 2010-07-26T19:16:45Z
Indexed on
2011/02/15
15:28 UTC
Read the original article
Hit count: 193
I’m running OpenBSD on a computer which is connected via wireless to the network. It is a well supported NIC and I’ve had no problems with it from a hardware perspective.
Unfortunately my wireless access point occasionally loves to forget it’s settings. I then have to help it remember. However, in this intervening time my OpenBSD box drops the connection and then does not automatically reconnect. I have alleviated my problems by running this simple script in the background:
#!/bin/sh
while [ 1 ]
do
ping -c1 192.168.1.254 > /dev/null
if [ $? = 1 ]
then
sh /etc/netstart ral0 > /dev/null
fi
sleep 30
done
[Ping the access point. If there is no response attempt to reconnect.]
It seems to me to be a very suboptimal solution. Has anyone else come across a better way?
© Super User or respective owner