Date: Mon, 4 Feb 2008 19:12:26 +0200 From: "Reinis Ivanovs" <dabas@untu.ms> To: freebsd-questions@freebsd.org Subject: Re: wireless losing connection periodically Message-ID: <5b826e210802040912o4f47d9b9tee10c5fb5ebf7368@mail.gmail.com> In-Reply-To: <5b826e210802031217l7df71386p5f876072996bc4d2@mail.gmail.com> References: <5b826e210802031217l7df71386p5f876072996bc4d2@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
hello, I'm surprised that no one replied, but anyway, just an update: it seems I've managed to resolve the problem with this short ifstated(8) config: ============================== # loglevel debug ping = '("ping -q -c 1 -t 1 192.168.1.1 > /dev/null" every 10)' state one { if !$ping set-state two } state two { init { run "logger -p console.notice -t ifstated 'Restarting network!'" run "/etc/rc.d/netif restart ral0" } if $ping set-state one } ============================== that's about it. cheers, reinis On Feb 3, 2008 10:17 PM, Reinis Ivanovs <dabas@untu.ms> wrote: > hello, > > I've noticed that my wireless connection tends to drop once in a while > and only restores itself after a relatively longish period. I'm > dealing with it now by connecting a laptop by wire (the box doesn't > have a screen or a keyboard) and running "/etc/rc.d/netif restart > ral0", but that's a bother. googling didn't bring up any useful > results, so I'm wondering, what are the best ways to mitigate or fix > this (aside from using a wire)? I'm considering writing a simple > script that'd constantly ping my router and restart the wlan interface > if it stops responding, but perhaps there's something pre-made or more > simple than that available? > > cheers, > reinis > > -- > http://untu.ms/ > -- http://untu.ms/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5b826e210802040912o4f47d9b9tee10c5fb5ebf7368>