From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Love Date: Tue, 02 Mar 2004 00:46:56 +0000 Subject: [patch] automatically install correct initscript Message-Id: <1078188416.10733.44.camel@localhost> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Here we go. Should work, for SuSE, Red Hat, and Debian - albeit I didn't test it much :-) Robert Love Makefile | 11 ++++++++++- TODO | 1 - 2 files changed, 10 insertions(+), 2 deletions(-) diff -urN udev-019/Makefile udev/Makefile --- udev-019/Makefile 2004-02-27 20:11:47.000000000 -0500 +++ udev/Makefile 2004-03-01 19:45:06.974024600 -0500 @@ -341,6 +341,15 @@ - endif +install-initscript: etc/init.d/udev etc/init.d/udev.debian etc/init.d/udev.init.LSB + @if [ -f /etc/redhat-release ]; then \ + $(INSTALL_DATA) etc/init.d/udev $(etcdir)/init.d/udev; \ + elif [ -f /etc/SuSE-release ]; then \ + $(INSTALL_DATA) etc/init.d/udev.init.LSB $(etcdir)/init.d/udev; \ + elif [ -f /etc/debian_version ]; then \ + $(INSTALL_DATA) etc/init.d/udev.debian $(etcdir)/init.d/udev; \ + fi + install-config: $(GEN_CONFIGS) $(INSTALL) -d $(DESTDIR)$(configdir) @if [ ! -r $(DESTDIR)$(configdir)udev.conf ]; then \ @@ -356,7 +365,7 @@ $(INSTALL_DATA) $(LOCAL_CFG_DIR)/udev.permissions $(DESTDIR)$(configdir); \ fi -install: install-config install-dbus-policy all +install: install-initscript install-config install-dbus-policy all $(INSTALL) -d $(DESTDIR)$(udevdir) $(INSTALL) -d $(DESTDIR)$(hotplugdir) $(INSTALL_PROGRAM) -D $(ROOT) $(DESTDIR)$(sbindir)/$(ROOT) diff -urN udev-019/TODO udev/TODO --- udev-019/TODO 2004-03-01 19:44:47.457991488 -0500 +++ udev/TODO 2004-03-01 19:44:38.682325592 -0500 @@ -7,7 +7,6 @@ - more documentation (can never have too much.) -- install the proper init.d script based on the distro we are running on. - persuade the distro packagers to submit their changes (or just steal them if we can find them...) - create kernel name to devfs name config file so that all of the devfs users ------------------------------------------------------- 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