X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=vs0+h2YCLolAA6XMILhgFOfheaDufUGc885AKnboCnZ proeuDh6cah4wFgvF6fB9UuPNqyd9Zn0zZ4gxaWFXscs+XSvT9a7JT7lrvE9zUPA lN4NYvGeRpBRv6+01k7V9H2SMY86/7T00sC/NqessBsi+zlT0HfZnUrji+c+gMD0 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=Z3o7DHxovN10JGMdur0KN3KqnrU=; b=N9zrp9iWcidy5x2T7 hoz3Hfmtel3mDenilZR7ks44X0FDU5HQieaw/VC/cTup0TqHTOD+MmPFjbMYkhIu aUpgWuKKSq2WIXrkxYVWvbP3LPsIpAKVMX2314tugyyz294w0fsllnGcai5RQAZC 7grSu9+eq7mRNcIUzNpzcvg2ow= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=So, Repin, repin, postinstall X-HELO: mail-in-09.arcor-online.net X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-07.arcor-online.net 3qcXmw3p7wz1WZC From: Achim Gratz To: cygwin AT cygwin DOT com Subject: Re: How to install a custom permanent postinstall handler? References: <838469265 DOT 20160401235308 AT yandex DOT ru> Date: Sat, 02 Apr 2016 11:21:15 +0200 In-Reply-To: <838469265.20160401235308@yandex.ru> (Andrey Repin's message of "Fri, 1 Apr 2016 23:53:08 +0300") Message-ID: <87a8lcicxg.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.91 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u329LmZx010069 Andrey Repin writes: > Couple of my scripts rely on ASH/DASH functionality that is not present in > BASH. (Namely "local -".) > To amend that, I make a symlink /bin/sh = /bin/dash . > But every time bash update, it overwrite the link. I think the correct course of action would be to put /bin/sh under control of the alternatives system. > So… How would I go about creating a handler that would restore the parity? > Will making a script /etc/postinstall be enough, or some additional magic is > necessary? There is. You will want to run this script in postinstall stratum z as a perpetual one, so the name of the script needs to start with "zp_" (preferrably with a .dash suffix, too). Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple