From owner-freebsd-questions@FreeBSD.ORG Wed May 15 07:35:59 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 7F58D5E3 for ; Wed, 15 May 2013 07:35:59 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 45CC23E0 for ; Wed, 15 May 2013 07:35:59 +0000 (UTC) Received: from [82.113.99.93] (helo=tiny.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1UcWFh-0006Ge-OG for freebsd-questions@freebsd.org; Wed, 15 May 2013 09:35:58 +0200 Received: from tiny.Sisis.de (localhost [127.0.0.1]) by tiny.Sisis.de (8.14.5/8.14.3) with ESMTP id r4F7ZtsS001122 for ; Wed, 15 May 2013 09:35:56 +0200 (CEST) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by tiny.Sisis.de (8.14.5/8.14.3/Submit) id r4F7Ztge001121 for freebsd-questions@freebsd.org; Wed, 15 May 2013 09:35:55 +0200 (CEST) (envelope-from guru@unixarea.de) X-Authentication-Warning: tiny.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Wed, 15 May 2013 09:35:54 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: detecting keyboard layout during boot Message-ID: <20130515073554.GA1098@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD 10.0-CURRENT r235646 (i386) User-Agent: Mutt/1.5.21 (2010-09-15) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 82.113.99.93 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 May 2013 07:35:59 -0000 Hello, I have in /etc/rc.conf a line keymap="german.iso" to set the keyboard to German; as the system in question is on an USB key for boot and sometimes used in other laptops with QWERTY layout, I would like to have it adapt itself to the actual layout without changing anything before booting in rc.conf and without asking the user to press a key ... is there some way to detect the actual keyboard layout automagically? Thanks matthias -- Sent from my FreeBSD netbook Matthias Apitz | - No system with backdoors like Apple/Android E-mail: guru@unixarea.de | - Never being an iSlave WWW: http://www.unixarea.de/ | - No proprietary attachments, no HTML/RTF in E-mail phone: +49-170-4527211 | - Respect for open standards