Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jun 2016 11:23:51 +0200
From:      "Martin S. Weber" <Ephaeton@gmx.net>
To:        Manish Jain <bourne.identity@hotmail.com>
Cc:        Polytropon <freebsd@edvax.de>, "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Bad experience switching to SSD on FreeBSD 10.3
Message-ID:  <20160625092351.GA1997@hephaistos.local>
In-Reply-To: <AM3PR02MB0963C663127CF29DD35C8CE6F62F0@AM3PR02MB0963.eurprd02.prod.outlook.com>
References:  <VI1PR02MB0974EE59E723F9B6678BDAC1F62E0@VI1PR02MB0974.eurprd02.prod.outlook.com> <649e47bb82b8c14b8068733a62f554f1@dweimer.net> <20160624232512.84ba05c4.freebsd@edvax.de> <AM3PR02MB0963C663127CF29DD35C8CE6F62F0@AM3PR02MB0963.eurprd02.prod.outlook.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160625092351.GA1997>