From owner-freebsd-questions@freebsd.org Sat Jun 25 09:24:04 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6F284B8017B for ; Sat, 25 Jun 2016 09:24:04 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C128311BE for ; Sat, 25 Jun 2016 09:24:03 +0000 (UTC) (envelope-from Ephaeton@gmx.net) Received: from hephaistos.local ([93.134.37.248]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0LkBPy-1bnJgD40Zm-00c6Wa; Sat, 25 Jun 2016 11:23:52 +0200 Received: by hephaistos.local (Postfix, from userid 1000) id 3EE2D297CDF6; Sat, 25 Jun 2016 11:23:51 +0200 (CEST) Date: Sat, 25 Jun 2016 11:23:51 +0200 From: "Martin S. Weber" To: Manish Jain Cc: Polytropon , "freebsd-questions@freebsd.org" Subject: Re: Bad experience switching to SSD on FreeBSD 10.3 Message-ID: <20160625092351.GA1997@hephaistos.local> Mail-Followup-To: Manish Jain , Polytropon , "freebsd-questions@freebsd.org" References: <649e47bb82b8c14b8068733a62f554f1@dweimer.net> <20160624232512.84ba05c4.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.1 (2016-04-27) X-Provags-ID: V03:K0:rIG5m3qR1D+aclORroEmrJdm8hc6YgMOCxa2hXeR3YvR2Y1Vlcc km5cEEK3iNaFCLzswhTrRzXoLgEsualuQYihZnbiYSXrUhT/LtqDr9VLVb4/vcLcFjO2ROe MtKoLLO7OY7q9g2lfiF/T0rA9lSfE8EvqAZWCtLRQ9XAr8WCZsbJ2TyP6aikRaHkjDOo4so PNnor69YGSd1iB3lGjRLA== X-UI-Out-Filterresults: notjunk:1;V01:K0:4Ai7Uw9OnrI=:BwiaBylFRK639ogXMYSNd3 kCa3j3OkXzEAkphH0OfSSpVsoa9iUe9SS0EtrV27obskGEDW6zJYv908TInvmSY0VJnWi25iK 4tkujWBrHSvht68OoGluz5/0WslUW6hw1Ijb3P/Yf0dHs/izhJKqs3Wht96zKb9XEz5U4MCM3 TEUPFckxYVdeugMYo6a1KLhNrGGfHjatI6JCTf4XAmnwky+bMhWhavyext0gjBk/fhr5a1YD0 WrdsNUT6rCH+nmg3FULCdN55+aIHgPRWvnkgqFrWhBEfAsIjn2M+bYxAFksheJr+xTQowabRx BS8GIpbnxew/AOEkETab0u9u3lllnBdROzRbnMk3exC7d2XU+x0WwRwsWGDqcItdEpfMcUwMy ozvnNYDSCuk+RbX80MAbEOE7GNt5n9RNjsBdXePvedZf0BaV7ftHP9MyBLVVtN//7DULmoWXo 2H5EAlW9t29rYH2K9GP1EPv2f4GUxxfxUWR/wEfaHV8cmxIEMm7ID08Ko4C93pEgZOVtIw8/i FAlwbQisJrWBChEzfM1ma1JI40eytZELGIQsfzlRF7zpzWh8jON0MXgPrlU4qmbYDbS/gDJH5 LE/pfM5Pt4wnJR6uzy+SRKRS6qsk5tnehtwLwaysSSxNN9CcwlqAvJ/VhPcW4qJN9RpLXboVx CsGUvKsmYssFyDRZMJgQpSHYBXnBqQppk16fIRyjcNmrTRGrTiAtIjWRe1Oz5Rj6KVwAWGn21 bexi5pAPco+MUGhkENwCtx56YVaJ0vwaiP6cU0xtSnwElzHN9ePrKQLs0us= X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2016 09:24:04 -0000 On 2016-06-25 09:08:46, Manish Jain wrote: > (...) > I found a doc which says the keyboard can be used with linux with this > script : > > #!/bin/bash #! /bin/sh > FLAGS=$(xset -q | awk 'NR==2' | awk '{ print $10 }') .. ^ { print $10 } > if [ "$FLAGS" = 00000000 ]; then > xset led on > else > xset led off > fi > > Would this kind of script work on FreeBSD too ? Sure, it does. No need for /bin/bash or the double awk invocation. xset led toggles my numlock status led, you'll have to test with your hardware (you've received instructions on how to unlock your console after enabling the LED with your hardware switch already anyways..), but I'd expect this to work. Regards, -Martin