From owner-freebsd-stable@FreeBSD.ORG Fri May 15 09:23:57 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CDA011065673 for ; Fri, 15 May 2009 09:23:57 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out0.tiscali.nl (smtp-out0.tiscali.nl [195.241.79.175]) by mx1.freebsd.org (Postfix) with ESMTP id 91A758FC19 for ; Fri, 15 May 2009 09:23:57 +0000 (UTC) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [212.123.145.58] (helo=sjakie.klop.ws) by smtp-out0.tiscali.nl with esmtp id 1M4te0-0008Ug-A5 for ; Fri, 15 May 2009 11:23:56 +0200 Received: from 82-170-177-25.ip.telfort.nl (localhost [127.0.0.1]) by sjakie.klop.ws (Postfix) with ESMTP id 4BAB89076 for ; Fri, 15 May 2009 11:23:55 +0200 (CEST) Date: Fri, 15 May 2009 11:23:54 +0200 To: freebsd-stable@freebsd.org From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 References: Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.64 (FreeBSD) Subject: Re: devd doesn't fire event on boot [solved] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2009 09:23:58 -0000 The property sernum is not very reliable. Sometimes devd knows about it and sometimes not. I removed the match on it and know it works. Ronald. On Wed, 06 May 2009 12:03:14 +0200, Ronald Klop wrote: > Hello, > > Running 7.2-STABLE/amd64. I have a USB-disk and added stuff to devd to > mount it readonly on attach. This does work if I attach it after booting > up, but not if it is attached before booting. > > [root@sjakie ~]# cat /etc/devd/philips.conf > attach 10 { > device-name "umass[0-9]+"; > match "vendor" "0x0471"; > match "product" "0x083a"; > match "sernum" "20521126"; > action "/root/bin/mountphilips.sh"; > }; > > [root@sjakie ~]# cat /root/bin/mountphilips.sh > #! /bin/sh > ( > # Sleep, so geom and other kernel stuff can handle the disk > # before we try to mount it. > sleep 10 > mount -v /mnt/backupdisk > ) & > > [root@sjakie ~]# grep backupdisk /etc/fstab > /dev/ufs/Extern /mnt/backupdisk ufs ro,noauto 0 0 > > What can be wrong? Is it possible devd misses events which happened > before devd was started? > Is this known behaviour? > > Ronald. > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"