From owner-freebsd-questions@FreeBSD.ORG Mon Feb 4 17:19:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6DFE016A417 for ; Mon, 4 Feb 2008 17:19:25 +0000 (UTC) (envelope-from fatalis.erratum@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.190]) by mx1.freebsd.org (Postfix) with ESMTP id 02B6C13C47E for ; Mon, 4 Feb 2008 17:19:24 +0000 (UTC) (envelope-from fatalis.erratum@gmail.com) Received: by ti-out-0910.google.com with SMTP id j2so167721tid.3 for ; Mon, 04 Feb 2008 09:19:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=Nzg00NuAfGNwkkRuVUn5RWa4DI2BHK2jIShs4hTRats=; b=SQi/SIEikNCGwsXvmUT1dzvnr3w6Tlyc/riw/PzYuqhczY7ao6PkGP6GNMglP4qQr7MPCIx02fqBoboJZHOTIF3idXVCwm4GsiRm3kW7KxjKeH+y3iGtgwAW5CEm96KOR7OY/oRZL9+l5wtu/yezqttopYnZZw4Muum+HY61Lfg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=wT4oIKkj8OR9efj5ByZGMcwcQYJq4Dc2nWRpBx1N80ifhoZjr8bV4hD54OBBmdJg632B0GjiIG62/7jvJ/075O7DSF9pp53UOfn1wLvL0EVsVQoNuC6po6gsB5f3Zv8poXzMkqDZf60mWGdIcgW9hyIproyy4hTp8gMnOQHd9uc= Received: by 10.150.150.3 with SMTP id x3mr3052785ybd.93.1202145146860; Mon, 04 Feb 2008 09:12:26 -0800 (PST) Received: by 10.150.11.19 with HTTP; Mon, 4 Feb 2008 09:12:26 -0800 (PST) Message-ID: <5b826e210802040912o4f47d9b9tee10c5fb5ebf7368@mail.gmail.com> Date: Mon, 4 Feb 2008 19:12:26 +0200 From: "Reinis Ivanovs" Sender: fatalis.erratum@gmail.com To: freebsd-questions@freebsd.org In-Reply-To: <5b826e210802031217l7df71386p5f876072996bc4d2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5b826e210802031217l7df71386p5f876072996bc4d2@mail.gmail.com> X-Google-Sender-Auth: 47086381a259207f Subject: Re: wireless losing connection periodically X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 17:19:25 -0000 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 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/