udev: ensure startup script is well installed
authorLionel Landwerlin <llandwerlin@gmail.com>
Thu, 9 Dec 2010 09:55:04 +0000 (10:55 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 12 Dec 2010 23:19:49 +0000 (00:19 +0100)
In case /etc/init.d does not exists.

[Peter: use install -D]
Signed-off-by: Lionel Landwerlin <llandwerlin@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
package/udev/udev.mk

diff --git a/CHANGES b/CHANGES
index 11c2becb1bfb8ca0af47997796c110043c39d4da..d5c40c5d56a53e4fc254ad03a8d36f1691dc826a 100644 (file)
--- 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
 
index 90dbdceaf5e7d9b948f66b6e38f4558ceea12e61..4b61ce48da162f49f7251ba79d73759eba19c872 100644 (file)
@@ -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