From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mout.kundenserver.de ([217.72.192.74]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dT5O9-0003dp-2T for ptxdist@pengutronix.de; Thu, 06 Jul 2017 13:56:05 +0200 From: Alexander Dahl Date: Thu, 6 Jul 2017 13:54:45 +0200 Message-Id: <1499342085-13101-3-git-send-email-post@lespocky.de> In-Reply-To: <1499342085-13101-1-git-send-email-post@lespocky.de> References: <20170704104821.GZ27745@falbala.home.lespocky.de> <1499342085-13101-1-git-send-email-post@lespocky.de> Subject: [ptxdist] [PATCH 2/2] haveged: Introduce bbinit startup List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Alexander Dahl QWRkZWQgYSBzdGFydHVwIHNjcmlwdCBpbnNwaXJlZCBieSB1cHN0cmVhbSwgZGViaWFuLCBidWls ZHJvb3QgYW5kIHRoZQpsbGRwZCBzdGFydHVwIHNjcmlwdCBhbHJlYWR5IHByZXNlbnQgaW4gcHR4 ZGlzdC4gQWxzbyBhZGRlZCB0aGUgdXN1YWwKcHR4ZGlzdCBtZW51IHN0dWZmIGZvciBkYWVtb25z IHN0YXJ0ZWQgd2l0aCBiYmluaXQgbWV0aG9kLgoKU2lnbmVkLW9mZi1ieTogQWxleGFuZGVyIERh aGwgPHBvc3RAbGVzcG9ja3kuZGU+Ci0tLQogcHJvamVjdHJvb3QvZXRjL2luaXQuZC9oYXZlZ2Vk IHwgMTE0ICsrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrCiBydWxlcy9o YXZlZ2VkLWJiaW5pdC5pbiAgICAgICAgfCAg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orfQorCitkb19zdGFydCgpIHsKKyAg ICBpc19ydW5uaW5nICYmIHJldHVybiAxCisgICAgc3RhcnQtc3RvcC1kYWVtb24gLVMgLS1xdWll dCAtLXBpZGZpbGUgJFBJREZJTEUgLS1leGVjICREQUVNT04gLS0gXAorICAgICAgICAkREFFTU9O X0FSR1MgXAorICAgICAgICB8fCByZXR1cm4gMgorfQorCitkb19zdG9wKCkgeworICAgIGlzX3J1 bm5pbmcgfHwgcmV0dXJuIDAKKyAgICBzdGFydC1zdG9wLWRhZW1vbiAtSyAtLXF1aWV0IC0tcGlk ZmlsZSAkUElERklMRSAtLW5hbWUgJE5BTUUKKyAgICBSRVRWQUw9IiQ/IgorCisgICAgIyB3YWl0 IHVwIHRvIDMwIHNlY29uZHMgdW50aWwgZGFlbW9uIHN0b3BwZWQKKyAgICBmb3IgaSBpbiAkKHNl cSAzMCkKKyAgICBkbworICAgICAgICBzbGVlcCAxCisgICAgICAgIGVjaG8gLW4gJy4nCisgICAg ICAgIGlmICEgaXNfcnVubmluZworICAgICAgICB0aGVuCisgICAgICAgICAgICBicmVhaworICAg ICAgICBmaQorICAgIGRvbmUKKworICAgICMgc2VlIGlmIGl0J3Mgc3RpbGwgcnVubmluZworICAg IGlmIGlzX3J1bm5pbmcKKyAgICB0aGVuCisgICAgICAgIHN0YXJ0LXN0b3AtZGFlbW9uIC1LIC0t cXVpZXQgLS1zaWduYWwgS0lMTCAtLXBpZGZpbGUgJFBJREZJTEUgLS1uYW1lICROQU1FCisKKyAg ICAgICAgZm9yIGkgaW4gJChzZXEgNSkKKyAgICAgICAgZG8KKyAgICAgICAgICAgIHNsZWVwIDEK KyAgICAgICAgICAgIGVjaG8gLW4gJy4nCisgICAgICAgICAgICBpZiAhIGlzX3J1bm5pbmcKKyAg ICAgICAgICAgIHRoZW4KKyAgICAgICAgICAgICAgICBicmVhaworICAgICAgICAgICAgZmkKKyAg ICAgICAgZG9uZQorCisgICAgICAgIGlmIGlzX3J1bm5pbmcKKyAgICAgICAgdGhlbgorICAgICAg ICAgICAgcmV0dXJuIDIKKyAgICAgICAgZmkKKyAgICBmaQorCisgICAgcm0gLWYgJFBJREZJTEUK KyAgICByZXR1cm4gIiRSRVRWQUwiCit9CisKK2Nhc2UgIiQxIiBpbgorICAgIHN0YXJ0KQorICAg ICAgICBlY2hvIC1uICJTdGFydGluZyAkREVTQyAuLi4iCisgICAgICAgIGRvX3N0YXJ0CisgICAg ICAgIGNhc2UgIiQ/IiBpbgorICAgICAgICAgICAgMHwxKSAgICBlY2hvICIgRG9uZS4iIDs7Cisg ICAgICAgICAgICAyKSAgICAgIGVjaG8gIiBGYWlsZWQuIiA7OworICAgICAgICBlc2FjCisgICAg ICAgIDs7CisgICAgc3RvcCkKKyAgICAgICAgZWNobyAtbiAiU3RvcHBpbmcgJERFU0MgLiIKKyAg ICAgICAgZG9fc3RvcAorICAgICAgICBjYXNlICIkPyIgaW4KKyAgICAgICAgICAgIDB8MSkgICAg ZWNobyAiIERvbmUuIiA7OworICAgICAgICAgICAgMikgICAgICBlY2hvICIgRmFpbGVkLiIgOzsK KyAgICAgICAgZXNhYworICAgICAgICA7OworICAgIHJlc3RhcnQpCisgICAgICAgIGVjaG8gLW4g IlJlc3RhcnRpbmcgJERFU0MgLi4iCisgICAgICAgIGRvX3N0b3AKKyAgICAgICAgY2FzZSAiJD8i IGluCisgICAgICAgICAgICAwfDEpCisgICAgICAgICAgICAgICAgZG9fc3RhcnQKKyAgICAgICAg ICAgICAgICBjYXNlICIkPyIgaW4KKyAgICAgICAgICAgICAgICAgICAgMCkgIGVjaG8gIiBEb25l LiIgOzsKKyAgICAgICAgICAgICAgICAgICAgMSkgIGVjaG8gIiBGYWlsZWQuIiA7OyAjIE9sZCBw cm9jZXNzIHN0aWxsIHJ1bm5pbmcKKyAgICAgICAgICAgICAgICAgICAgKikgIGVjaG8gIiBGYWls ZWQuIiA7OyAjIEZhaWxlZCB0byBzdGFydAorICAgICAgICAgICAgICAgIGVzYWMKKyAgICAgICAg ICAgICAgICA7OworICAgICAgICAgICAgKikKKyAgICAgICAgICAgICAgICBlY2hvICIgRmFpbGVk LiIgIyBGYWlsZWQgdG8gc3RvcAorICAgICAgICAgICAgICAgIDs7CisgICAgICAgIGVzYWMKKyAg ICAgICAgOzsKKyAgICBzdGF0dXMpCisgICAgICAgIGlmIGlzX3J1bm5pbmcKKyAgICAgICAgdGhl bgorICAgICAgICAgICAgZWNobyAiJE5BTUUgaXMgcnVubmluZyB3aXRoIFBJRCAkKGNhdCAkUElE RklMRSkgLi4uIgorICAgICAgICBlbHNlCisgICAgICAgICAgICBlY2hvICIkTkFNRSBpcyBub3Qg cnVubmluZyIKKyAgICAgICAgZmkKKyAgICAgICAgOzsKKyAgICAqKQorICAgICAgICBlY2hvICJV c2FnZTogJFNDUklQVE5BTUUge3N0YXJ0fHN0b3B8cmVzdGFydHxzdGF0dXN9IiA+JjIKKyAgICAg ICAgZXhpdCAzCisgICAgICAgIDs7Citlc2FjCisKKzoKZGlmZiAtLWdpdCBhL3J1bGVzL2hhdmVn ZWQtYmJpbml0LmluIGIvcnVsZXMvaGF2ZWdlZC1iYmluaXQuaW4KbmV3IGZpbGUgbW9kZSAxMDA2 NDQKaW5kZXggMDAwMDAwMC4uYjZhZWUyMgotLS0gL2Rldi9udWxsCisrKyBiL3J1bGVzL2hhdmVn ZWQtYmJpbml0LmluCkBAIC0wLDAgKzEsOSBAQAorIyMgU0VDVElPTj1pbml0bWV0aG9kX2JiaW5p dAorCitjb25maWcgSEFWRUdFRF9CQklOSVRfTElOSworCXN0cmluZworCWRlcGVuZHMgb24gSEFW RUdFRF9TVEFSVFNDUklQVAorCXByb21wdCAiaGF2ZWdlZCIKKwlkZWZhdWx0ICJTMjFoYXZlZ2Vk IgorCisjIHZpbTogZnQ9a2NvbmZpZyBub2V0IHR3PTcyCmRpZmYgLS1naXQgYS9ydWxlcy9oYXZl Z2VkLmluIGIvcnVsZXMvaGF2ZWdlZC5pbgppbmRleCA5YThhNTk3Li5mMD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