From cd182cae65c0075c16910dc6b990fc3f8abbd776 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 9 Dec 2010 10:55:04 +0100 Subject: [PATCH] udev: ensure startup script is well installed In case /etc/init.d does not exists. [Peter: use install -D] Signed-off-by: Lionel Landwerlin Signed-off-by: Peter Korsgaard --- CHANGES | 4 ++-- package/udev/udev.mk | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES b/CHANGES index 11c2becb1b..d5c40c5d56 100644 --- a/CHANGES +++ b/CHANGES @@ -4,8 +4,8 @@ compilation, and cache is stored in ~/.buildroot-ccache. Updated/fixed packages: busybox, dbus, cloop, gdk-pixbuf, - hostapd, i2c-tools, libconfig, m4, openssh, openssl, qt, usbutils, xz, - zlib + hostapd, i2c-tools, libconfig, m4, openssh, openssl, qt, + udev, usbutils, xz, zlib New packages: dhrystone, lsuio, rsh-redone, whetstone diff --git a/package/udev/udev.mk b/package/udev/udev.mk index 90dbdceaf5..4b61ce48da 100644 --- a/package/udev/udev.mk +++ b/package/udev/udev.mk @@ -88,7 +88,8 @@ define UDEV_INSTALL_TARGET_CMDS LDFLAGS="-warn-common" \ USE_LOG=false USE_SELINUX=false \ udevdir=$(UDEV_ROOT) EXTRAS="$(UDEV_BUILD_EXTRAS)" -C $(@D) install - $(INSTALL) -m 0755 package/udev/S10udev $(TARGET_DIR)/etc/init.d + $(INSTALL) -m 0755 -D package/udev/S10udev $(TARGET_DIR)/etc/init.d/S10udev + $(INSTALL) -m 0755 -d $(TARGET_DIR)/etc/udev/rules.d $(INSTALL) -m 0644 $(@D)/etc/udev/frugalware/* $(TARGET_DIR)/etc/udev/rules.d ( grep udev_root $(TARGET_DIR)/etc/udev/udev.conf > /dev/null 2>&1 || echo 'udev_root=/dev' >> $(TARGET_DIR)/etc/udev/udev.conf ) install -m 0755 -D $(@D)/udevstart $(TARGET_DIR)/sbin/udevstart -- 2.30.2