From owner-freebsd-current@FreeBSD.ORG Thu Dec 11 17:49:11 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2D8E416A4CE for ; Thu, 11 Dec 2003 17:49:11 -0800 (PST) Received: from smtp.fud.org.nz (203-79-110-29.cable.paradise.net.nz [203.79.110.29]) by mx1.FreeBSD.org (Postfix) with ESMTP id BFA8343D1F for ; Thu, 11 Dec 2003 17:49:09 -0800 (PST) (envelope-from andy@fud.org.nz) Received: by smtp.fud.org.nz (Postfix, from userid 1001) id 98AC0170A7; Fri, 12 Dec 2003 14:49:07 +1300 (NZDT) Date: Fri, 12 Dec 2003 14:49:07 +1300 From: Andrew Thompson To: current@freebsd.org Message-ID: <20031212014907.GA86634@kate.fud.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: devd & ukbd X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Dec 2003 01:49:11 -0000 Hi, I am trying to put together a devd rule for attaching a usb keyboard. The problem is that the usb device is called ukbd0 while the keyboard needs to be referred to as kbd1. attach 10 { device-name "ukbd[0-9]+"; action "kbdcontrol -k /dev/$device-name < /dev/console"; }; detach 10 { device-name "ukbd[0-9]+"; action "kbdcontrol -k /dev/kbd0"; }; This obviously doesnt work as /dev/ukbd0 doesnt exist, anyone know a way in devd to translate it to /dev/kbd1? maybe something like kbd($device-number + 1) A better solution would be if the kbd1 device caused a devd event when attached, which it does not seem to. thanks Andy