From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OjpF4-0007oA-1S for garchives@archives.gentoo.org; Fri, 13 Aug 2010 08:03:54 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AA814E0995 for ; Fri, 13 Aug 2010 08:03:52 +0000 (UTC) Received: from mailgate.caprica.metux.de (caprica.metux.de [82.165.128.25]) by pigeon.gentoo.org (Postfix) with ESMTP id 345A6E08C9 for ; Fri, 13 Aug 2010 07:27:22 +0000 (UTC) Received: from mailgate.caprica.metux.de (localhost.localdomain [127.0.0.1]) by mailgate.caprica.metux.de (8.14.4/8.14.4) with ESMTP id o7D7R1gF020734 for ; Fri, 13 Aug 2010 09:27:01 +0200 Received: (from uucp@localhost) by mailgate.caprica.metux.de (8.14.4/8.14.4/Submit) with UUCP id o7D7Q21Q020665 for gentoo-user@lists.gentoo.org; Fri, 13 Aug 2010 09:26:02 +0200 Received: (from weigelt@localhost) by nibiru.metux.de (8.12.10/8.12.10) id o7D7IaDD031168 for gentoo-user@lists.gentoo.org; Fri, 13 Aug 2010 09:18:36 +0200 Date: Fri, 13 Aug 2010 09:18:36 +0200 From: Enrico Weigelt To: gentoo-user Subject: [gentoo-user] automatic wlan restart Message-ID: <20100813071836.GA21326@nibiru.local> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Terror: bin laden, kill bush, Briefbombe, Massenvernichtung, KZ, X-Nazi: Weisse Rasse, Hitlers Wiederauferstehung, 42, X-Antichrist: weg mit schaeuble, ausrotten, heiliger krieg, al quaida, X-Killer: 23, endloesung, Weltuntergang, X-Doof: wer das liest ist doof X-Archives-Salt: 1fffbb7d-40a2-4350-b46c-90f2e7b369bc X-Archives-Hash: 0632df066311421e6d435a5ac25bafe8 Hi folks, I'm regularily loosing wlan link (not sure if its a driver problem or disortion in the local air) and so have to restart the wland interface quite often. As the box is also doing several automatic things (backups, etc), it's really ugly (eg. when I'm not on keys, at some point no backups can be made, etc). So I'm looking for a way to fully-automatically restart the interface when the link goes down. Of course, I could hack up some syslog parsing, which calls '/etc/init.d/net.wlan0 restart', but that implies the interface going down (iow: ipstack will report no route to destination network back to applications) for several seconds. Does anyone know an better solution, which just reconnects to the same AP w/o taking the interface down (maybe even buffer the packets while physical link down) ? cu -- ---------------------------------------------------------------------- Enrico Weigelt, metux IT service -- http://www.metux.de/ phone: +49 36207 519931 email: weigelt@metux.de mobile: +49 151 27565287 icq: 210169427 skype: nekrad666 ---------------------------------------------------------------------- Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme ----------------------------------------------------------------------