From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1019D13838B for ; Tue, 30 Sep 2014 10:12:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CAC8FE09E5; Tue, 30 Sep 2014 10:12:40 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6E4AEE09A2 for ; Tue, 30 Sep 2014 10:12:39 +0000 (UTC) Received: from localhost ([84.133.172.205]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0LzcIM-1YKjmj04Bu-014l4e for ; Tue, 30 Sep 2014 12:12:35 +0200 Date: Tue, 30 Sep 2014 12:12:34 +0200 From: meino.cramer@gmx.de To: Gentoo Subject: [gentoo-user] another "headless device"-question: In search of the LAN Message-ID: <20140930101234.GC3828@solfire> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Linux) X-Provags-ID: V03:K0:RKz/mdSOj32c5O3MhX7IPP92WTB50Lz4ZMhFukC6xXd+NzYAkws fqY+QnzpISDlpPLLW8h6Jnawrw3at+u8UGFV0KSbnHfk0A31ya2ec46IZ8vhSboxUoo9tOw QYIfR2VVdECmOKfEnCgfp+L9R6yu1xG5whUVD6nvcZ6mkl70ypR8L565pi4q6bx7aI5tu5S RMEZSM8VD+7vKPffzMcvA== X-UI-Out-Filterresults: notjunk:1; X-Archives-Salt: 70f93b6b-3e1b-44f4-a446-f8c31568eec3 X-Archives-Hash: a50c01f7baa10003c8443cdaa0052728 Hi, For a device (beaglebone black) I am looking for a solution of the following problem: This little computer boots a fully blown Gentoo linux. It is used mostly as headless device (capturing data from attached sensors). >From time to time I want access it via LAN. If the device was booted without LAN attached, the configured ethernet was not found and dhcpd fails. So Gentoo goes into "no LAN"-mode (or something like that). Is there a less "waiting for the timeout"-prone way to refresh the status of the LAN beside putting the accoring init-script into a cron job ??? Is there a way to check, whether a RJ45 was plugged into the device and if so to start init-script then? Thank you very much in advance for any help! Best regards, mcc