From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp77.ord1c.emailsrvr.com ([108.166.43.77]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1haiaE-0005lR-H7 for barebox@lists.infradead.org; Tue, 11 Jun 2019 15:21:12 +0000 Received: by smtp10.relay.ord1c.emailsrvr.com (Authenticated sender: abbotti-AT-mev.co.uk) with ESMTPSA id 41596404AA for ; Tue, 11 Jun 2019 11:21:08 -0400 (EDT) References: From: Ian Abbott Message-ID: <2ed1eda2-04b8-0ddc-0be0-793aae74f57d@mev.co.uk> Date: Tue, 11 Jun 2019 16:21:06 +0100 MIME-Version: 1.0 In-Reply-To: Content-Language: en-GB List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Environment variables set by /env/bin/init disappear when script exits To: barebox@lists.infradead.org T24gMTEvMDYvMjAxOSAxNTo1MiwgSWFuIEFiYm90dCB3cm90ZToKPiBTaW5jZSBjb21taXQgOTBk ZjJhOTU1ZTNjICgiZGVmYXVsdGVudjogQ29udmVydCBpbml0IHNjcmlwdCB0byBDIiksIGlmIAo+ IHRoZSBsZWdhY3kgL2Vudi9iaW4vaW5pdCBzY3JpcHQgaXMgc3RpbGwgYmVpbmcgdXNlZCwgYW55 IGVudmlyb25tZW50IAo+IHZhcmlhYmxlcyB0aGF0IHdlcmUgc2V0IGluIHRoZSBzY3JpcHQgKHN1 Y2ggYXMgdGhlIFBTMSBwcm9tcHQpIGRpc2FwcGVhciAKPiB3aGVuIHRoZSBzY3JpcHQgZXhpdHMu wqAgSSBndWVzcyBpdCBpcyBiZWNhdXNlIHRoZSBzY3JpcHQgaXMgbm93IHJ1biAKPiBkaXJlY3Rs eSBieSBydW5fY29tbWFuZChpbml0ZmlsZSkgKGluaXRmaW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