openslug-init: Add code to create /dev/rtc for the new RTC class driver by azummo.
authorRod Whitby <rod@whitby.id.au>
Sat, 7 Jan 2006 05:57:38 +0000 (05:57 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 7 Jan 2006 05:57:38 +0000 (05:57 +0000)
packages/openslug-init/openslug-init-0.10/links.conf [new file with mode: 0644]
packages/openslug-init/openslug-init_0.10.bb

diff --git a/packages/openslug-init/openslug-init-0.10/links.conf b/packages/openslug-init/openslug-init-0.10/links.conf
new file mode 100644 (file)
index 0000000..fdd1f3c
--- /dev/null
@@ -0,0 +1,6 @@
+# This file does not exist. Please do not ask the debian maintainer about it.
+# You may use it to do strange and wonderful things, at your risk.
+
+# The new RTC class does not create the /dev/rtc symlink, and udev rules don't get run for built-in modules.
+# So it looks like we have to do this here for the moment, until someone comes up with a better idea ...
+L rtc          rtc0
index fa85d9c..a54e45e 100644 (file)
@@ -3,7 +3,7 @@ SECTION = "console/network"
 LICENSE = "GPL"
 DEPENDS = "base-files devio"
 RDEPENDS = "busybox devio"
-PR = "r44"
+PR = "r45"
 
 SRC_URI = "file://linuxrc \
           file://boot/flash \
@@ -25,6 +25,7 @@ SRC_URI = "file://linuxrc \
           file://turnup \
           file://reflash \
           file://modprobe.conf \
+          file://links.conf \
           file://leds.h \
           file://leds.c \
           "
@@ -57,6 +58,7 @@ do_install() {
                    ${D}${sysconfdir}/default \
                    ${D}${sysconfdir}/init.d \
                   ${D}${sysconfdir}/modutils \
+                   ${D}${sysconfdir}/udev \
                   ${D}${sbindir} \
                   ${D}${base_sbindir} \
                   ${D}/initrd \
@@ -90,6 +92,10 @@ do_install() {
                install -m 0755 initscripts/$s ${D}${sysconfdir}/init.d/
        done
 
+       #
+       # Udev configuration files
+       install -m 0644 links.conf ${D}${sysconfdir}/udev
+
        #
        # Boot scripts
        for p in ${BOOTSCRIPTS}