Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jun 2015 15:08:10 +0200
From:      Matthias Apitz <guru@unixarea.de>
To:        Shane Ambler <FreeBSD@ShaneWare.Biz>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /etc/pccard_ether && assigning IP and routing
Message-ID:  <20150618130810.GA6411@c720-r276659>
In-Reply-To: <5582BDC7.9080203@ShaneWare.Biz>
References:  <20150618060534.GA3970@c720-r276659> <5582BDC7.9080203@ShaneWare.Biz>

next in thread | previous in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150618130810.GA6411>