From owner-freebsd-questions@FreeBSD.ORG Thu Jun 18 13:08:17 2015 Return-Path: Delivered-To: freebsd-questions@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F1C8F74C for ; Thu, 18 Jun 2015 13:08:17 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AF6CA7A5 for ; Thu, 18 Jun 2015 13:08:17 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [89.204.155.27] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1Z5ZYC-0001wa-EY; Thu, 18 Jun 2015 15:08:13 +0200 Received: from localhost.my.domain (c720-r276659 [127.0.0.1]) by localhost.unixarea.de (8.14.9/8.14.9) with ESMTP id t5ID8AO2006460 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Thu, 18 Jun 2015 15:08:10 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.14.9/8.14.9/Submit) id t5ID8AHs006459; Thu, 18 Jun 2015 15:08:10 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 18 Jun 2015 15:08:10 +0200 From: Matthias Apitz To: Shane Ambler Cc: freebsd-questions@freebsd.org Subject: Re: /etc/pccard_ether && assigning IP and routing Message-ID: <20150618130810.GA6411@c720-r276659> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , Shane Ambler , freebsd-questions@freebsd.org References: <20150618060534.GA3970@c720-r276659> <5582BDC7.9080203@ShaneWare.Biz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5582BDC7.9080203@ShaneWare.Biz> X-Operating-System: FreeBSD 11.0-CURRENT r269739 (i386) User-Agent: Mutt/1.5.23 (2014-03-12) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 89.204.155.27 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Jun 2015 13:08:18 -0000 El día Thursday, June 18, 2015 a las 10:17:03PM +0930, Shane Ambler escribió: > usbconfig will list devices, if your phone is at ugen2.5 then - > usbconfig -u 2 -a 5 dump_device_desc | grep idVendor > > Replace your idvendor in the following - > > Put the following into /usr/local/etc/devd/myubuntuphone.conf > > attach 200 { > device-name "ue[0-9]+"; > match "vendor" "0x056a"; > action "/path/to/script options"; > }; > > detach 200 { > device-name "ue[0-9]+"; > match "vendor" "0x056a"; > action "/path/to/script options"; > }; Thanks. At the end I used now: notify 1 { match "system" "IFNET"; match "subsystem" "ue0"; match "type" "ATTACH"; action "/usr/local/etc/devd/bq.sh $subsystem $type"; }; Thanks for your feedback anyway. matthias -- Matthias Apitz, guru@unixarea.de, http://www.unixarea.de/ +49-170-4527211 +49-176-38902045 "Wenn der Mensch von den Umständen gebildet wird, so muß man die Umstände menschlich bilden." "Si el hombre es formado por las circunstancias entonces es necesario formar humanamente las circunstancias", Karl Marx in Die heilige Familie / La sagrada familia (MEW 2, 138)