This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: How to install a custom permanent postinstall handler?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]