X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:subject:from:to:date:in-reply-to
	:references:content-type:mime-version:content-transfer-encoding;
	 q=dns; s=default; b=frqej94iuXLBLfaMyL8J+KbIhEfWXolwwo1xZjHylKA
	H8CS65ZbUzy7KwHJsH5Arcw5cWfx1hBNfQXIFiYT1OjYvXiJxUyAlYyEjXHmNdsB
	ErZuwdnQKeW65vDCv7GxuXbXviPSF1rxddgplT2T7rz13BPrwVInsOFL1yC5kR+U
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:subject:from:to:date:in-reply-to
	:references:content-type:mime-version:content-transfer-encoding;
	 s=default; bh=soyyj6+KH2ZAZQQzW8TXr+6s6fo=; b=G8eNSxKoaEFMSjWCm
	gtOVZFRP+lAWhscTAk3ZCuRkVdAu2qZMfe/9XsRywAqDR4a4bvH29y98d6PNT69R
	bJVzk42ECDDaWdaGHugK5OyeuedDHIaTcvbt9LZCQjMBN8v1hrNsdiEjIlYMFMBL
	P8wvt4DDT3Htb3gdUCrxPbwMXc=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.0 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <1440618651.6808.33.camel@cygwin.com>
Subject: Re: how to detect whether a laptop is docked
From: Yaakov Selkowitz <yselkowitz@cygwin.com>
To: cygwin@cygwin.com
Date: Wed, 26 Aug 2015 14:50:51 -0500
In-Reply-To: <0D835E9B9CD07F40A48423F80D3B5A702E917C2B@USA7109MB022.na.xerox.net>
References: 	<0D835E9B9CD07F40A48423F80D3B5A702E917C2B@USA7109MB022.na.xerox.net>
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes

On Wed, 2015-08-26 at 19:27 +0000, Nellis, Kenneth wrote:
> I am looking for a method by which I can determine within a shell script 
> whether my laptop is docked or not. Google provided some answers for Linux 
> and Windows users, but the several ways I tried did not work out.
> 
> One Windows solution * provided a VB script that accessed a registry variable ‡,
> but my registry value remains the same whether or not I'm docked. 
> 
> The Linux solutions required either a file I don't have (/var/run/stab) or a tool
> that I don't have and couldn't find in a Cygwin search (acpid or lsusb).

lsusb is part the usbutils package, which is currently in Ports.

--
Yaakov




--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

