From 0e41494e29e20161d0e7846b79d16324b99b323f Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sat, 16 Dec 2006 00:13:02 +0000 Subject: Enabled busybox udev service (see #99 too). Integrated for genereal use if present in InitRamFS... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@551 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/etc/functions | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'initramfs/initrd-stuff/etc/functions') diff --git a/initramfs/initrd-stuff/etc/functions b/initramfs/initrd-stuff/etc/functions index b27dfc66..aa0a8225 100644 --- a/initramfs/initrd-stuff/etc/functions +++ b/initramfs/initrd-stuff/etc/functions @@ -32,6 +32,7 @@ udev_hotplug () { : } + ############################################################################# # generate events with the sysfs trigger trigger_device_events () { @@ -60,6 +61,29 @@ trigger_device_events () { done } +############################################################################# +# mini udev of busybox or distro specific udev_hotplug +runudev () { +if [ -x /bin/mdev ] ; then + # simple shell daemon which runs for 100 seconds and stops if hwautocfg is + # completed + #miniudev () { + # local maxwait=100 + # local count=0 + # while [ ! -e /tmp/hwcfg ] ; do + mdev -s + # sleep 1 + # count=`expr $count + 1` + # [ $count -gt $maxwait ] && return 0 + # done + #} + #miniudev & +else + udev_hotplug +fi +echo "Started udev" +} + ############################################################################# # produce error message and if $2 is empty run (debug) shell error () { -- cgit v1.2.3-55-g7522