From owner-freebsd-questions@FreeBSD.ORG Fri Jul 2 14:06:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 49B391065674 for ; Fri, 2 Jul 2010 14:06:17 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-bw0-f54.google.com (mail-bw0-f54.google.com [209.85.214.54]) by mx1.freebsd.org (Postfix) with ESMTP id CD5318FC21 for ; Fri, 2 Jul 2010 14:06:16 +0000 (UTC) Received: by bwz12 with SMTP id 12so1968189bwz.13 for ; Fri, 02 Jul 2010 07:06:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=hnFOHB1JI8iV0OYTDBflmyHgeKzY/cv5Xg46Pxeerfk=; b=UcRI2NAoIDnSv3a54iFo9nVf6cnrqW0HFiFH0yXy9VDPtRqEmNqw76P3t1zI5Ik/aG 5Me+qdSJYl0x49PcZNPwE/7gb1dmlhy6D/QKjxhw0MvxXvUZSGr5OindpV1nIQzd0D31 EfLzi3NY0lltZCOMUcrSzfJ6OZjBQFGaNflx4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Bosy/KsKa8idp3vnexHgiDmTuXcGL7EeLK2cs6N/zXfJTgl/II1hdgg9SXZiU4RhYl 8YIRJEKY5rLkhoEFtPpwFNFusrIxOHZU8xInF/twzzU2x4tUTt2/SHyHDDg776FRpaOi SH2SnSXKmbAwh0j/Qc57h5tuuYSl0p4h65nFA= Received: by 10.204.35.77 with SMTP id o13mr630952bkd.190.1278079563280; Fri, 02 Jul 2010 07:06:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.72.137 with HTTP; Fri, 2 Jul 2010 07:05:31 -0700 (PDT) From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Fri, 2 Jul 2010 16:05:31 +0200 Message-ID: To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Running a script after a device's been plugged X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2010 14:06:17 -0000 Hi, In order to simplify our managing scripts, my project manager would like to manage all devices (USB and serial) with the same name pattern (cuaa*, cuad*, ... whatever). He explained me he wants to keep cuaa0 and cuaa1, and then link each /dev/da`n` to /dev/cuaa`n + 2`, ... But, there is some things I'm not sure to understand: 1) I though that cuaa was used until FreeBSD7, then we had cuad, and since FreeBSD8, it would be cuaU. But one of our 7.2-RELEASE have both /dev/cuaU0 and dev/cuad0. Did I miss something? What is cuaU doing here? btw. it's my dev server, someone may have touched it. On the servers installed from my generated CDs, no /dev/cuaU* at all... 2) We also provide serial DCF77 modules, and use them with ntpd, linking them /dev/ttyd`n` to /dev/refclock-`n` What is ttyd used for? Can I assume I would use ttyd`n` only with my DCF modules, and so link them to /dev/refclock-`n`, excluding them from my cuaa`n + x` mess? Also, we would have to manage USB DCF77 modules soon; does anybody tried them? How would them be named in /dev? 3) Last but not least, how to link a device once it's plugged in, and unlin= k it once it's unplugged? We're still providing 5.4 and 6.2 releases based versions. And I do not lik= e hal. So I thought I could use /etc/devd.conf, with attach/detach directives, and their actions calling a script that would create/delete the links. Is there a cleaner way to do it? Would it be still usable in 8.x? (9.x?) Thanks for your time and advices! Samuel Mart=EDn Moro {EPITECH.} tek4 CamTrace S.A.S (+033) 1 41 38 37 60 1 All=E9e de la Venelle 92150 Suresnes FRANCE