From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.eckelmann.de ([217.19.183.89]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dIGQ9-0002Tv-5e for ptxdist@pengutronix.de; Tue, 06 Jun 2017 17:29:25 +0200 Received: from mail.eckelmann.de (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id A8E1D3EC29BB_936CA4FB for ; Tue, 6 Jun 2017 15:29:19 +0000 (GMT) Received: from dag.eckelmann.group (ex-dag01.eckelmann.group [10.0.192.70]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "oa.eckelmann.de", Issuer "Eckelmann Gruppe CA" (not verified)) by mail.eckelmann.de (Sophos Email Appliance) with ESMTPS id 8B8603EC007D_936CA4FF for ; Tue, 6 Jun 2017 15:29:19 +0000 (GMT) From: Gavin Schenk Date: Tue, 6 Jun 2017 17:28:48 +0200 Message-ID: <20170606152849.69114-3-g.schenk@eckelmann.de> In-Reply-To: <20170606152849.69114-1-g.schenk@eckelmann.de> References: <20170606152849.69114-1-g.schenk@eckelmann.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 2/3] rc-once: Use readlink to check where /system-update points to. List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Gavin Schenk cmMtb25jZSBpc3QgYmFzZWQgb24gc3lzdGVtZCBvZmZsaW5lIHVwZGF0ZSBtZWNoYW5pc20uCmh0 dHBzOi8vd3d3LmZyZWVkZXNrdG9wLm9yZy9zb2Z0d2FyZS9zeXN0ZW1kL21hbi9zeXN0ZW1kLm9m ZmxpbmUtdXBkYXRlcwoKVG8gbWFrZSBp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