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 DF0F41381F3 for ; Thu, 22 Aug 2013 17:24:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C804BE0BA1; Thu, 22 Aug 2013 17:24:46 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A9E69E0B4C for ; Thu, 22 Aug 2013 17:24:45 +0000 (UTC) Received: from gmx.net ([84.133.132.144]) by mail.gmx.com (mrgmx003) with ESMTPA (Nemesis) id 0MILxX-1VDNZM3fV1-004D4p for ; Thu, 22 Aug 2013 19:24:44 +0200 Received: by gmx.net (nbSMTP-1.00) for uid 1001 meino.cramer@gmx.de; Thu, 22 Aug 2013 19:24:43 +0200 (CEST) Date: Thu, 22 Aug 2013 19:24:43 +0200 From: meino.cramer@gmx.de To: Gentoo Subject: [gentoo-user] Two RTCs - how to choose in dependence of existence to eth0 Message-ID: <20130822172443.GB3339@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:9Mly+/zrtyf9hNDgUqtp9hV0DItox0Xlyvyu2MIFCKq97ng0OUt H8Uw/kfAJ0KG9S9PbBUITi79klsoWPxfU7c790JIPRMidEwbQXlrhCGISubnZYrrc/cj8es i6p915G2ct4GsfFcVwwzjCFQHDgsP8WkP0mfEr3D3Vcrl+n5jnnvB5ysayFEmVmayii8VX6 Ni27FEbLc1NBPMg1cy7hw== X-Archives-Salt: 98a87c44-d6a9-41ba-90e1-3c975c18cf10 X-Archives-Hash: cd7e1fd5cb94b516ee31ceb71d943e54 Hi, there are two RTC in my system. One is powered by the power of the system itsself and will forget space and time if the system is powered off. This is RTC0. The second one is powered by a little CR3216. This one will not forget the time. This is RTC1 The system itsself is portable and will be used with and without access to the internet (no ethernet, no eth0). Surely it is possible to hack together a script which will run at boot time to figure out the source of the valid time. But this is somehow less elegant and gentoo-ish as it should be. I didnt found an application (via eix) which address this "problem". What is the recommended way to accomplish this task? Thank you very much in advance for any help! Best regards, mcc