From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Tue, 02 Mar 2004 00:22:03 +0000 Subject: Re: automatic init.d script installation Message-Id: <20040302002203.GA6556@vrfy.org> List-Id: References: <1078186231.10733.36.camel@localhost> In-Reply-To: <1078186231.10733.36.camel@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, Mar 01, 2004 at 07:10:31PM -0500, Robert Love wrote: > Looking at this TODO item: Cool, I'm no longer alone :) > - install the proper init.d script based on the distro we are > running on. > > We can do this with something like: > > if [ -f /etc/redhat-release ]; then > install redhat init script to redhat spot > elif [ -f /etc/SuSE-release ]; then > install LSB init script to suse spot > elif [ -f ... ]; then > ... > fi > > Is that cool? Such hard coding is not really my cup of tea, but it is a > Makefile and there is not much better way to do it. We have similar > logic in the D-BUS configure script and Makefile. It's cool! Here is more: if [ -f /etc/debian_version ]; then > If it is cool, maybe Kay can swoop in and do it for me (KIDDING, KAY! > YOU ROCK!) ;-) Bastard! :) Thanks, I enjoy it. Kay ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel