From owner-freebsd-questions@FreeBSD.ORG Tue Feb 5 12:27:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D663D356 for ; Tue, 5 Feb 2013 12:27:59 +0000 (UTC) (envelope-from axelbsd@ymail.com) Received: from nm14-vm4.bullet.mail.gq1.yahoo.com (nm14-vm4.bullet.mail.gq1.yahoo.com [98.136.218.76]) by mx1.freebsd.org (Postfix) with SMTP id 98B513DE for ; Tue, 5 Feb 2013 12:27:59 +0000 (UTC) Received: from [98.137.12.191] by nm14.bullet.mail.gq1.yahoo.com with NNFMP; 05 Feb 2013 12:24:31 -0000 Received: from [98.136.185.44] by tm12.bullet.mail.gq1.yahoo.com with NNFMP; 05 Feb 2013 12:24:31 -0000 Received: from [127.0.0.1] by smtp105.mail.gq1.yahoo.com with NNFMP; 05 Feb 2013 12:24:31 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1360067071; bh=3VrkpWMaW1e43zoBuJvwQlaHf1pA+bqsMfKurIy3LG0=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Received:X-Received:MIME-Version:Received:In-Reply-To:References:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=I9ONTEMrKErXr66DBbda79igJeVcjA+yOfWmTv4brdWudbvlYHYxmMwjL5zvveanQBQoYlofKx+epU/TS6PW93Ceb5qTuEBoiVPyQyv89iI1RLGzQd2tIuvlLoAP9ppi5AL7UQb0hUIbb8BV6SJ+tvWISKjtCvmdFLMBoVRz06k= X-Yahoo-Newman-Id: 218053.21337.bm@smtp105.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: LNx8fIwVM1mL2v0hpXJVi1KLluoaVV2OSdF9LZgjkV2i6c_ pCTPQjqCO0JbcBtOvPd.Jn7sTCyKSApGYyaVY4HF.ymOgcEeZhKuqC13VAZn 0KWrgfQSGsmX5hbQAnqp8LPG921tI3dJt3_NIt7IpGTBsrGhKemYI_6W29oC JTA0SR.mHc2Nmu0lSMJme_Ms3dcOTm.SftVP2T.Ck3_9w7NoORvm2wy8yCx4 acnxazYd.GVKt1ZdZ.yP5Adq1KGOWthbGtqJadwh_OdWS2PmDjn6L5jsKmWB vLAId.TOCVt4LXzg5t.2SJyLxaC6SKG0UyHBpepa1tirYmbmJ9yfydJYRqIm CzzCwn2skhYFKo2Vz37UoVWHDmo0gUCJnguRu2h9WXafeY0CDwweZDGfIpjp IWnhqnvwgMfqzBLf6EQLFWXTQ6t196b_7xLhqqAtUqvqgTmpCeDZUgEpKAPA JD3GR3o711_EX1HHfIZ7Or6_1xyU99WEVdz6.D7srUmtQsL5mfqI- X-Yahoo-SMTP: S65s63SswBDjU54Gjqw2GSWlZmfgiEU_X3tN1_9u Received: from mail-ve0-f177.google.com (axelbsd@209.85.128.177 with plain) by smtp105.mail.gq1.yahoo.com with SMTP; 05 Feb 2013 04:24:31 -0800 PST Received: by mail-ve0-f177.google.com with SMTP id m1so59541ves.36 for ; Tue, 05 Feb 2013 04:24:30 -0800 (PST) X-Received: by 10.52.95.37 with SMTP id dh5mr24340657vdb.26.1360067070226; Tue, 05 Feb 2013 04:24:30 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.207.65 with HTTP; Tue, 5 Feb 2013 04:24:10 -0800 (PST) In-Reply-To: References: From: Alexandre Date: Tue, 5 Feb 2013 13:24:10 +0100 Message-ID: Subject: Re: devd wlan wpa To: CeDeROM Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Questions Mailing List X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Feb 2013 12:27:59 -0000 Hi, There is this entry for the network aggregation in the Handbook http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-aggregation.html You will be able to switch from wired to wifi card (and vice versa). Regards, Alexandre On Tue, Feb 5, 2013 at 11:14 AM, CeDeROM wrote: > Hello :-) > > I want to setup wpa_supplicant to start after wlan0 interface gets up. > The rc.conf ifconfig_wlan0="WPA DHCP" does the job only at boot. When > I get the interface down I need to start everything by hand, which is > a bit annoying when I test a lot and need to switch between Ethernet > and WiFi interfaces very often. I have tried to write devd rule: > > notify 0 { > match "system" "IFNET"; > match "subsystem" "wlan[0-9]+"; > match "type" "LINK_UP"; > media-type "802.11"; > match "device-name" "wlan[0-9]+"; > action "/usr/sbin/wpa_supplicant -i $device-name -c > /etc/wpa_supplicant.conf -B"; > }; > > But there goes the chicken-egg problem - I want to run wpa_supplicant > on LINK_UP event that occurs when Media Status is "connected", but to > get that "connected" status I need to run wpa_supplicant first, so > capabilities of devd are not enough in this case, or I miss something? > Is there any distinction between LINK_UP and IF_UP? > > Any hints appreciated :-) > Tomek > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >