From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from inx.pm.waw.pl ([195.116.170.130]) by bombadil.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SQmYA-0001m5-Eb for barebox@lists.infradead.org; Sat, 05 May 2012 21:29:59 +0000 From: Krzysztof Halasa Date: Sat, 05 May 2012 23:26:22 +0200 Message-ID: MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: RFC: Force a 2s delay on startup to allow bypassing /dev/env0. To: barebox@lists.infradead.org SnVzdCByZXF1ZXN0aW5nIGNvbW1lbnRzLiBJJ20gdXNpbmcgdGhpcyBvbiBteSBody4KClRoZSBp ZGVhIGlzIHRoYXQgL2Vudi9iaW4vaW5pdCBtYXkgYmUgdW5pbnRlcnJ1cHRpYmxlIGFuZCB0aGUg dXNlcgptYXkgYmUgdW5hYmxlIHRvIHJlY292ZXIgY29udHJvbCBvdmVyIHRoZSBiYXJlYm94LiBQ ZXJoYXBzIHRoZXJlIGlzCmEgYmV0dGVyIHdheT8KClNpZ25lZC1vZmYtYnk6IEtyenlzenRvZiBI YcWCYXNhIDxraGNAcG0ud2F3LnBsPgoKZGlmZiAtLWdpdCBhL2NvbW1vbi9zdGFydHVwLmMgYi9j b21tb24vc3RhcnR1cC5jCmluZGV4IGFiZDFiNzcuLmZkZTk5ZDUgMTAwNjQ0Ci0tLSBhL2NvbW1v bi9zdGFydHVwLmMKKysrIGIvY29tbW9uL3N0YXJ0dXAuYwpAQCAtMzAsNiArMzAsNyBAQAogICog QGJyaWVmIE1haW4gZW50cnkgaW50byB0aGUgQyBwYXJ0IG9mIGJhcmVib3gKICAqLwogI2luY2x1 ZGUgPGNvbW1vbi5oPgorI2luY2x1ZGUgPGNsb2NrLmg+CiAjaW5j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