From owner-freebsd-questions@FreeBSD.ORG  Mon Feb 21 17:35:25 2005
Return-Path: <owner-freebsd-questions@FreeBSD.ORG>
Delivered-To: freebsd-questions@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 73A4116A4CE
	for <freebsd-questions@freebsd.org>;
	Mon, 21 Feb 2005 17:35:25 +0000 (GMT)
Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 2BC9A43D5F
	for <freebsd-questions@freebsd.org>;
	Mon, 21 Feb 2005 17:35:25 +0000 (GMT)
	(envelope-from vincent_bachelier@yahoo.fr)
Received: from vincent (ferreol-1-82-66-171-150.fbx.proxad.net
	[82.66.171.150])
	by postfix4-1.free.fr (Postfix) with SMTP id C6E4228C7EB
	for <freebsd-questions@freebsd.org>;
	Mon, 21 Feb 2005 18:35:21 +0100 (CET)
Received: by vincent (sSMTP sendmail emulation);
	Mon, 21 Feb 2005 18:35:28 +0100
Date: Mon, 21 Feb 2005 18:35:28 +0100
From: Bachelier Vincent <vincent_bachelier@yahoo.fr>
To: freebsd-questions@freebsd.org
Message-ID: <20050221173528.GA10184@localhost>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.2.1i
X-Operating-System: FreeBSD vincent 5.3-STABLE FreeBSD 5.3-STABLE
Subject: More info about usbd.conf please ?
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>,
	<mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Mon, 21 Feb 2005 17:35:25 -0000

Ok
I have a problem
When I connect my external hard drive I have the traditional info under dmesg

umass0: Genesys Logic USB TO IDE, rev 2.00/0.02, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Maxtor 6 Y160P0 0811> Fixed Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: 156334MB (320173056 512 byte sectors: 255H 63S/T 19929C)

Well, with usbd.conf I can know umass0 with the ${DEVNAME}
here my usbd.conf


device "HddCombo"
        devname "umass[0-9]+"
        vendor 0x05e3
        product 0x0702
        attach "sleep 2; ln -sf /dev/$(/usr/local/bin/find_de ${DEVNAME})s1 /dev/hddcombo"
        detach "rm -f /dev/hddcombo"

The goal, When I connect my hdd, make a symlinks to the right daXsX node
ln -s /dev/da0s1 /dev/hddcombo (or da1 da2 if I have connect other hdd before)

find_de is a personal script that use dmesg to find my information
grep umass-sim0 (for umass0) => I obtain da0
But it's not a good solution

Is there somewhere Where I can obtain this information,
I call something like givemeinformation umass0 and I found da0 under

Ok, the solution exist ?

by using devd.conf, can I obtain this information when I connect my hdd
ok

thx for support

NB: I'm french, if you are too, talk me in french personaly, and keep english for the forum :d
See ya

-- 
Vincent Bachelier <vincent_bachelier@yahoo.fr>
Societe : Solintech
Site pro: http://www.solintech.fr
Project : 
	Ripperwww: http://www.sourceforge.net/projects/ripperwww

Citation (fortune):

But soft you, the fair Ophelia:
Ope not thy ponderous and marble jaws,
But get thee to a nunnery -- go!
		-- Mark "The Bard" Twain