diff options
-rw-r--r-- | initscripts/initscripts-1.0/devices | 5 | ||||
-rw-r--r-- | initscripts/initscripts-1.0/sysfs.sh | 11 | ||||
-rw-r--r-- | initscripts/initscripts_1.0.oe | 7 | ||||
-rw-r--r-- | udev/udev_032.oe | 3 |
4 files changed, 22 insertions, 4 deletions
diff --git a/initscripts/initscripts-1.0/devices b/initscripts/initscripts-1.0/devices index 9820f363c6..141a60d59e 100644 --- a/initscripts/initscripts-1.0/devices +++ b/initscripts/initscripts-1.0/devices @@ -5,6 +5,11 @@ . /etc/default/rcS +# exit without doing anything if udev is active +if test -x /bin/pidof -a "`pidof udevd`" != "" then + exit 0 +fi + if test -e /dev/.devfsd then if test "$VERBOSE" != "no"; then echo -n "Setting up device links for devfs: "; fi diff --git a/initscripts/initscripts-1.0/sysfs.sh b/initscripts/initscripts-1.0/sysfs.sh index e69de29bb2..4486128ad5 100644 --- a/initscripts/initscripts-1.0/sysfs.sh +++ b/initscripts/initscripts-1.0/sysfs.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +if [ -e /proc ] && ! [ -e /proc/mounts ]; then + mount -t proc proc /proc +fi + +if [ -e /sys ] && grep -q sysfs /proc/filesystems; then + mount sysfs /sys -t sysfs +fi + +exit 0 diff --git a/initscripts/initscripts_1.0.oe b/initscripts/initscripts_1.0.oe index 9183388ff0..7141966551 100644 --- a/initscripts/initscripts_1.0.oe +++ b/initscripts/initscripts_1.0.oe @@ -4,7 +4,7 @@ SECTION = "base" PRIORITY = "required" DEPENDS = "makedevs" RDEPENDS = "makedevs" -PR = "r15" +PR = "r16" SRC_URI = "file://halt \ file://ramdisk \ @@ -98,8 +98,9 @@ do_install () { ln -sf ../init.d/bootmisc.sh ${D}/etc/rcS.d/S55bootmisc.sh # ln -sf ../init.d/urandom ${D}/etc/rcS.d/S55urandom ln -sf ../init.d/finish ${D}/etc/rcS.d/S99finish - ln -sf ../init.d/devices ${D}/etc/rcS.d/S01devices - ln -sf ../init.d/sysfs.sh ${D}/etc/rcS.d/S36sysfs + ln -sf ../init.d/devices ${D}/etc/rcS.d/S04devices + # udev will run at S03 if installed + ln -sf ../init.d/sysfs.sh ${D}/etc/rcS.d/S02sysfs ln -sf ../init.d/devpts.sh ${D}/etc/rcS.d/S38devpts.sh install -m 0755 ${WORKDIR}/device_table.txt ${D}/etc/device_table diff --git a/udev/udev_032.oe b/udev/udev_032.oe index e093656e83..edc3a881cf 100644 --- a/udev/udev_032.oe +++ b/udev/udev_032.oe @@ -1,3 +1,4 @@ +PR = "r1" SECTION = "base" DESCRIPTION = " udev is a program which dynamically creates and removes device nodes from \ /dev/. It responds to /sbin/hotplug device events and requires a 2.6 kernel." @@ -31,7 +32,7 @@ do_install () { if [ "${udevdir}" == "/dev" ]; then install -m 0755 ${S}/extras/start_udev ${D}/etc/init.d/start_udev install -d ${D}/etc/rcS.d - ln -s /etc/init.d/start_udev ${D}/etc/rcS.d/S37start_udev + ln -s /etc/init.d/start_udev ${D}/etc/rcS.d/S03start_udev else chmod 0755 ${D}/etc/init.d/udev fi |