From owner-freebsd-stable@FreeBSD.ORG Sat Feb 28 14:25:10 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 62F87106566C for ; Sat, 28 Feb 2009 14:25:10 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 1EDC18FC16 for ; Sat, 28 Feb 2009 14:25:09 +0000 (UTC) (envelope-from freebsd-stable@m.gmane.org) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1LdQ7j-0007HL-2K for freebsd-stable@freebsd.org; Sat, 28 Feb 2009 14:25:03 +0000 Received: from p5b205660.dip.t-dialin.net ([91.32.86.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Feb 2009 14:25:03 +0000 Received: from sperber by p5b205660.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Feb 2009 14:25:03 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-stable@freebsd.org From: Michael Sperber Date: Sat, 28 Feb 2009 14:13:10 +0100 Lines: 17 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p5b205660.dip.t-dialin.net User-Agent: Gnus/5.110011 (No Gnus v0.11) XEmacs/21.5-b28 (darwin) Cancel-Lock: sha1:3/jheV92r+Y5oBLWrAfXhCI9hOM= Sender: news Subject: devd question 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: Sat, 28 Feb 2009 14:25:10 -0000 I'm trying to make devd run an stty command whenever a USB serial device is attached. Unfortunately, $device-name is ucom[0-9] and the device names are /dev/cuaU[0-9] - how do I get the correct name in the device action? I haven't found a way to extract the number by itself, so I'm stuck with specifying a separate rule for each number, like so: attach 100 { device-name "ucom0"; action "stty -f /dev/cuaU0.init raw"; }; Help would be much appreciated! -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla